Skip to main content
Participant
Sep 30, 2021 10:49 AM UTC
Question

Problem with PRINT permissions in the Adobe API in my code

Hello team;

I am writing here because the community has referred me to this thread for the third time.

 

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...

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Legend
Oct 13, 2021 12:52 PM UTC

I know nothing about this API, but I know something about PDF protection. You say "I can't print it" but there are many causes of this.

1. What exact response do you get when using File > Print in Acrobat/Reader (or is it greyed out)?

2. Please show a screen shot of document security property dialog from Acrobat/Reader.

Translate
AdepedroAuthor
Participant
Oct 13, 2021 1:24 PM UTC

Hi, thanks for your answer.

 

In the next screen shot you can check it.

 

 

but this API function in my code doesn't work and it should allow printing.

 

      permissions.addPermission(protectPDFOptions.Permission.COPY_CONTENT)

 

😞

Translate
AdepedroAuthor
Participant
Oct 13, 2021 11:32 AM UTC

Hello team, can someone from the community help me with this?

Translate