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

Change visibility of Overlay#loadPDF to protected

    XMLWordPrintableJSON

    Details

    • Flags:
      Patch

      Description

      Overriding loadPDF allows subclasses to load overlays from sources different than File objects, for example from InputStreams or byte arrays (mostly through PDDocument.load overloads).

      For example:

      Overlay overlay = new Overlay() {
          @Override
          protected PDDocument loadPDF(String pdfName) throws IOException {
              return PDDocument.load(overlayStreams.get(pdfName));
          }
      };
      

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              wiktor-k Wiktor Kwapisiewicz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: