Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Cannot remove password after ReaderExt applied

Avatar

Level 4

Hi!

I cannot remove password from PDF document if Reader Extensions was applied and than removed. I am able to remove password using Acrobat, but not using removePDFPasswordSecurity component. There is no problem with password removal when I skip Reader Extension. But RE is required.

Do You have a similar experience? Could You give some piece of advice, please?

Eror message in log is:

...

Password Key Unlock failed(PDFEncryptionImpl.java549) while invoking service EncryptionService

...

Thanks,

--- Jaroslav

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Jaroslav

I was able to duplicate the error.  If I used one process where the first step was to remove the RE rights, and then pass the file on to the Remove Password step. The problem has something to do with the state of the file.

If I created two distinct processes (that are invoked seperately), the first one removes the RE permissions and writes the PDF to the file system, and then the second process reads the file in created by the first process, and removes the password, this works.  It works because it is duplicating what you were doing manually with Acrobat (i.e Remove RE, save the file, open it back up in Acrobat, remove password).

Regards

Steve

View solution in original post

4 Replies

Avatar

Correct answer by
Former Community Member

Jaroslav

I was able to duplicate the error.  If I used one process where the first step was to remove the RE rights, and then pass the file on to the Remove Password step. The problem has something to do with the state of the file.

If I created two distinct processes (that are invoked seperately), the first one removes the RE permissions and writes the PDF to the file system, and then the second process reads the file in created by the first process, and removes the password, this works.  It works because it is duplicating what you were doing manually with Acrobat (i.e Remove RE, save the file, open it back up in Acrobat, remove password).

Regards

Steve

Avatar

Employee

This will work fine if the orchestration is changed to long-lived

HTH

Santosh

Avatar

Level 4

Guys, thank for sharing. It is helpfull.

--- Jaroslav

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----