Author: tilman Date: Fri Aug 8 10:00:53 2025 New Revision: 1927689 Log: PDFBOX-6049: improve naming
Modified: pdfbox/branches/3.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java Modified: pdfbox/branches/3.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java ============================================================================== --- pdfbox/branches/3.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java Fri Aug 8 10:00:49 2025 (r1927688) +++ pdfbox/branches/3.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java Fri Aug 8 10:00:53 2025 (r1927689) @@ -266,7 +266,7 @@ public class Overlay implements Closeabl } if (allPagesOverlay != null) { - specificPageOverlayLayoutPageMap = getLayoutPages(allPagesOverlay); + specificPageOverlayLayoutPageMap = createPageOverlayLayoutPageMap(allPagesOverlay); useAllOverlayPages = true; numberOfOverlayPages = specificPageOverlayLayoutPageMap.size(); } @@ -283,14 +283,14 @@ public class Overlay implements Closeabl private static final class LayoutPage { private final PDRectangle overlayMediaBox; - private final COSStream overlayContentStream; + private final COSStream overlayCOSStream; private final COSDictionary overlayResources; private final short overlayRotation; private LayoutPage(PDRectangle mediaBox, COSStream contentStream, COSDictionary resources, short rotation) { overlayMediaBox = mediaBox; - overlayContentStream = contentStream; + overlayCOSStream = contentStream; overlayResources = resources; overlayRotation = rotation; } @@ -326,7 +326,7 @@ public class Overlay implements Closeabl resources.getCOSObject(), (short) page.getRotation()); } - private Map<Integer,LayoutPage> getLayoutPages(PDDocument doc) throws IOException + private Map<Integer,LayoutPage> createPageOverlayLayoutPageMap(PDDocument doc) throws IOException { int i = 0; Map<Integer, LayoutPage> layoutPages = new HashMap<>(); @@ -503,7 +503,7 @@ public class Overlay implements Closeabl private PDFormXObject createOverlayFormXObject(LayoutPage layoutPage, PDFCloneUtility cloner) throws IOException { - PDFormXObject xobjForm = new PDFormXObject(layoutPage.overlayContentStream); + PDFormXObject xobjForm = new PDFormXObject(layoutPage.overlayCOSStream); xobjForm.setResources(new PDResources( cloner.cloneForNewDocument(layoutPage.overlayResources))); xobjForm.setFormType(1);