Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Processing encrypted PDF with LC server APIs


Not applicable
Not sure where to put this topic but this seemed the best place.

The problem is that we want to secure our PDF files with password (so that users can't open it with Designer) but after the user returns the PDF, we can't process it because it's secured. Normally we could just unsecure the PDF but it is also Reader Extended and I think it messes things up.

Problem in short:

Build PDF (from XDP) -> Encrypt PDF -> Reader Extend PDF -> user fills PDF and sends it back -> remove Reader Extend and encryption (we want to create PDF/A and extract XML etc.) -> processing continues..

The "remove RE and encryption" seems the hardest part. We use LC via Web Service. The Reader Extension seems to go well off from the PDF but after that the EncryptionService throws some error if I try to call removePDFPasswordSecurity or unlockPDFUsingPassword methods (not sure which one is the correct). Any advices?
2 Replies


Not applicable
The EncryptionService.removePDFPasswordSecurity returns following error:

com.adobe.livecycle.encryption.client.EncryptionServiceException: Generic PDFEncryptionException--problem in EncryptionDSC -- Operation failed(error code bin: 259, hex: 0x103) -- (error code bin: 1, hex: 0x1)


Not applicable
Problem solved. I tried to decrypt with wrong password. Little uninformative error message..