Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.12
-
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)); } };