You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/11/11 11:37:00 UTC

[jira] [Assigned] (PDFBOX-4375) Change visibility of Overlay#loadPDF to protected

     [ https://issues.apache.org/jira/browse/PDFBOX-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr reassigned PDFBOX-4375:
---------------------------------------

    Assignee: Tilman Hausherr

> 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
>            Assignee: Tilman Hausherr
>            Priority: Minor
>              Labels: Overlay
>             Fix For: 2.0.13, 3.0.0 PDFBox
>
>         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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org