Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2395

PDF encryption does not work when PDF version is set in FOP config

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.5
    • 2.2
    • renderer/pdf
    • None

    Description

      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

      Attachments

        1. fop-pdf-encryption.xconf
          0.5 kB
          Seifeddine Dridi
        2. test.xml
          2 kB
          Seifeddine Dridi

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sdridi Seifeddine Dridi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment