Expand my Community achievements bar.

Processing encrypted PDF with LC server APIs

Avatar

Former Community Member
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

Avatar

Former Community Member
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)

Avatar

Former Community Member
Problem solved. I tried to decrypt with wrong password. Little uninformative error message..