Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1656

Enable PDFMergeUtility to merge Encrypted PDFs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Utilities
    • Windows 7

    Description

      The curent version of PDFMergerUtility is unable to merge PDFs which are encrypted. The implemented Check in line 227 will fail due to the load mechanism in line 186 (PDDocument.load(sourceFile))

      Changing the load mechanism in line 227 to PDDocument.loadNonSeq(File file, RandomAccess scratchFile) and "bouncy castle crypto" dependency included the merger will be able to handle encrypted pdfs.

      Attachments

        1. PDFEncryptedMergerUtility.java
          15 kB
          Rene Fischer

        Activity

          People

            Unassigned Unassigned
            fischey Rene Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: