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

PDFMergerUtility corrupts file attachments

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.7.0
    • Component/s: Utilities
    • Environment:
      Windows 7, Acrobat Pro 9.4.4, Eclipse Helios SR2

      Description

      When combining files that contain (PDF) file attachments, the attachments carry over, but are corrupted in the merged file.

      Code used:
      PDFMergerUtility merger = new PDFMergerUtility();
      merger.addSource("c:/gilad/testing/in/1.pdf");
      merger.addSource("c:/gilad/testing/in/2.pdf");
      merger.setDestinationFileName("c:/gilad/testing/in/merged.pdf");
      try

      { merger.mergeDocuments(); }

      catch (Exception e)

      { e.printStackTrace(); }

        Attachments

        1. 1.pdf
          53 kB
          Gilad Denneboom
        2. 2.pdf
          55 kB
          Gilad Denneboom
        3. merged.pdf
          110 kB
          Gilad Denneboom

          Issue Links

            Activity

              People

              • Assignee:
                tboehme Timo Boehme
                Reporter:
                giladd Gilad Denneboom
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: