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

Overlay class does not work with in-memory PDFs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Utilities
    • None
    • 2.0.0-RC3

    Description

      The class org.apache.pdfbox.multipdf.Overlay has no possibility to perform the overlay only in memory (using a custom OutputStream). It is currently fixed to work with files only.

      A suggestion would be to add an overload public void overlay(Map<Integer, String> specificPageOverlayFile, OutputStream outStream) throws IOException which uses the outStream if supplied and falls back to outputFilename if null is passed (would be an easy solution)

      Attachments

        1. pdfbox3209.patch
          2 kB
          Philip Helger

        Activity

          People

            lehmi Andreas Lehmkühler
            phax Philip Helger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: