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

PDFMergerUtility corrupts file attachments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • Utilities
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: