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 2022/10/08 02:50:00 UTC

[jira] [Resolved] (PDFBOX-5523) Bug in org/apache/pdfbox/multipdf/Overlay#overlay(specificPageOverlayFile)

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

Tilman Hausherr resolved PDFBOX-5523.
-------------------------------------
    Fix Version/s: 2.0.28
                   3.0.0 PDFBox
         Assignee: Tilman Hausherr
       Resolution: Fixed

Thanks for reporting this. A snapshot is available here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.28-SNAPSHOT/

> Bug in org/apache/pdfbox/multipdf/Overlay#overlay(specificPageOverlayFile)
> --------------------------------------------------------------------------
>
>                 Key: PDFBOX-5523
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5523
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.27, 3.0.0 PDFBox
>            Reporter: Stefan Ziegler
>            Assignee: Tilman Hausherr
>            Priority: Critical
>              Labels: regression
>             Fix For: 2.0.28, 3.0.0 PDFBox
>
>
> {code:java}
> path = e.getValue();
> LayoutPage layoutPage = layouts.get(path);
> if (layoutPage == null)
> {
>     PDDocument doc = loadPDF(path);
>     layouts.put(path, getLayoutPage(doc));
>     openDocuments.add(doc);
> }
> specificPageOverlayPage.put(e.getKey(), layoutPage);{code}
> layoutPage is null because never assigned within the if clause. It should be:
> {code:java}
> path = e.getValue();
> LayoutPage layoutPage = layouts.get(path);
> if (layoutPage == null)
> {
>     PDDocument doc = loadPDF(path);
>     openDocuments.add(doc);
>     layoutPage = getLayoutPage(doc);
>     layouts.put(path, layoutPage);
> }
> specificPageOverlayPage.put(e.getKey(), layoutPage);{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org