Skip to main content
Participant
September 14, 2021
Question

Problem with PRINT permissions in the Adobe API.

  • September 14, 2021
  • 3 replies
  • 131 views

Hello team;

I need help with a "print" instruction in my own code.

In my code, I have created a tool that allows me to edit and lock my own reports pdf wit ADOBE API.

but after that i can't print it and i think i put the correct function; addPermissions .... "PRINT" ...

Can you help me with that?

 

example:

.....
      permissions.addPermission(protectPDFOptions.Permission.PRINT_LOW_QUALITY)
      permissions.addPermission(protectPDFOptions.Permission.EDIT_DOCUMENT_ASSEMBLY)
      permissions.addPermission(protectPDFOptions.Permission.COPY_CONTENT)
      const options = new protectPDFOptions.PasswordProtectOptions.Builder()
        .setOwnerPassword(config.pdf_lock_password)
        .setPermissions(permissions)
        .setEncryptionAlgorithm(protectPDFOptions.EncryptionAlgorithm.AES_256)
 .setContentEncryption(protectPDFOptions.ContentEncryption.ALL_CONTENT_EXCEPT_METADATA)
        .setContentEncryption(protectPDFOptions.ContentEncryption.ALL_CONTENT)
     ......

 info: https://opensource.adobe.com/pdfservices-node-sdk-samples/apidocs/latest/PasswordProtectOptions.html#.ContentEncryption

    This topic has been closed for replies.

    3 replies

    Jeff_Coatsworth
    Community Expert
    Community Expert
    September 15, 2021
    Jeff_Coatsworth
    Community Expert
    Community Expert
    September 15, 2021

    Then I think you're in the wrong forum - this one is all about Adobe RoboHelp, not PDFs.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    September 14, 2021

    You're doing this is in RoboHelp?

    AdepedroAuthor
    Participant
    September 15, 2021

    Hello there; I am doing it directly with code thanks to the ADOBE API