Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0.27, 3.0.0 PDFBox
-
None
Description
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);
layoutPage is null because never assigned within the if clause. It should be:
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);
Attachments
Issue Links
- breaks
-
PDFBOX-5748 Cannot get overlayPDF working on command line interface
- Closed
- duplicates
-
PDFBOX-5527 The pages option does not work correctly for the overlay command
- Closed