Skip to main content
Participant
June 6, 2023
Question

How to Javascript a function to add a file attachment from string

  • June 6, 2023
  • 2 replies
  • 893 views

Hi Community,

we are developing a PDF with from fields and having "NotAllowed" exception with method setDataObjectContents actual in Adobe Acrobat Reader. The goal is to read the form data as string and put it as file attachment into the attachment list of the same PDF.

Is there a way to script this without running into security issues using actual Adobe Acrobat Reader?

 

Many Thx's in advance!

 

    This topic has been closed for replies.

    2 replies

    Bernd Alheit
    Community Expert
    Community Expert
    June 7, 2023

    You can use setDataObjectContents in Acrobat Reader when the PDF file has attachments rights.

    Or use Adobe Acrobat Pro or Standard.

    Participant
    June 7, 2023

    Thanks for your information! That's the question, how to give the PDF file attachments rights?

    I did not found any option in the Acrobat Pro to set or Acrobat Reader.

     

    Bernd Alheit
    Community Expert
    Community Expert
    June 8, 2023

    You can add the rights with this:

    https://www.datalogics.com/pdf-reader-extension 

    kglad
    Community Expert
    Community Expert
    June 6, 2023

    in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

     

    p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post if it helps you get responses.

     

    <moved from using the community>