Skip to main content
Participant
Jun 6, 2023 9:51 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Bernd Alheit
    Community Expert
    Community Expert
    Jun 7, 2023 7:09 AM UTC

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

    Or use Adobe Acrobat Pro or Standard.

    Translate
    Participant
    Jun 7, 2023 11:43 PM UTC

    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.

     

    Translate
    Bernd Alheit
    Community Expert
    Community Expert
    Jun 8, 2023 5:04 AM UTC

    You can add the rights with this:

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

    Translate
    kglad
    Community Expert
    Community Expert
    Jun 6, 2023 11:06 PM UTC

    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>

    Translate