Seifeddine Dridi commented on FOP-2395:

Thanks Luis. As a start, it would be nice to add a check on PDF version before 
trying to change it in PDFDocument.setEncryptionParam. Don't you agree?

> PDF encryption does not work when PDF version is set in FOP config
> ------------------------------------------------------------------
>                 Key: FOP-2395
>                 URL: https://issues.apache.org/jira/browse/FOP-2395
>             Project: Fop
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: trunk
>            Reporter: Seifeddine Dridi
>            Priority: Blocker
>         Attachments: fop-pdf-encryption.xconf, test.xml
> After setting PDF version to 1.4 or any other version in FOP configuration, 
> an exception is thrown "Cannot change the version of this PDF document".
> A warning is also printed which I find confusing "Configured encryption 
> requires PDF version 1.4 but version has been set to 1.4".
> Does this mean that encryption does not work when I explicitly set my PDF 
> version? It used to work before applying this commit 
> (https://issues.apache.org/jira/browse/FOP-2248).
> Anyone can explain what has changed exactly in the encryption algorithm?
> Thank you

This message was sent by Atlassian JIRA

Reply via email to