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

Don't create intermediate streams when merging files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.11, 3.0.0 PDFBox
    • Fix Version/s: 2.0.12, 3.0.0 PDFBox
    • Component/s: Utilities
    • Labels:
      None

      Description

      from dev@pdfbox posted by Tilman Hausherr

      While looking at

      https://stackoverflow.com/questions/51564781/error-merging-large-pdf-files-with-pdfbox-missing-end-of-file-marker-eof/

      I noticed that the merge utility makes streams from files... which means that whole files are getting cached to allow random access. IMHO it would be better to keep files as files and streams as streams, i.e. have an array of objects and then "do the right thing".

      It doesn't makes sense to create intermediate streams, PDDocument.load should handle different ways of input

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                lehmi Andreas Lehmkühler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: