[ https://issues.apache.org/jira/browse/PDFBOX-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16682474#comment-16682474 ]
Tilman Hausherr commented on PDFBOX-4375: ----------------------------------------- I did send a reply this morning with an apology for not responding, but I did see the post a few weeks ago. You can write to the mailing list, the best is usually the users mailing list. Please come back here when you've tested your implementation (with a copy of the class). My little implementation is really a quickie, so I may have forgotten something. > Change visibility of Overlay#loadPDF to protected > ------------------------------------------------- > > Key: PDFBOX-4375 > URL: https://issues.apache.org/jira/browse/PDFBOX-4375 > Project: PDFBox > Issue Type: Improvement > Components: Utilities > Affects Versions: 2.0.12 > Reporter: Wiktor Kwapisiewicz > Priority: Minor > Labels: Overlay > Attachments: > 0001-Change-visibility-of-Overlay-loadPDF-to-protected.patch > > > 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: > {code:java} > Overlay overlay = new Overlay() { > @Override > protected PDDocument loadPDF(String pdfName) throws IOException { > return PDDocument.load(overlayStreams.get(pdfName)); > } > }; > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org