« Return to Thread: PDF is password protected although no password was specified

Re: PDF document asking

by 3melie :: Rate this Message:

Reply to Author | View in Thread

Hi Andrea & Adrian,

Thank you very much for your answers.

I am using fop-0.95

What I d like to do is to disable copying and editing of the PDF but withought having the file password protected.
Is this possible?


Emelie

Andreas Delmelle-2 wrote:
On 28 May 2009, at 14:05, 3melie wrote:

>
> I ve also tried:
>
> foUserAgent.getRendererOptions().put("encryption-params",
> new PDFEncryptionParams( null, null, true, false, false, false));
>
> but it still says the PDF is password protected.

OK, but do you still have to enter a password? That the file is  
password-protected is normal, since the print- and copy-restrictions  
require at least the owner password.

Come to think of it, which FOP version are you using. I seem to  
remember an issue that got fixed in FOP Trunk, where the PDF document  
trailer ended up having two /ID entries in case encryption was used.  
Some Acrobat versions and other PDF viewers were confused by this.


HTH!

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

 « Return to Thread: PDF is password protected although no password was specified