Author: tilman
Date: Fri Aug  8 10:00:49 2025
New Revision: 1927688

Log:
PDFBOX-6049: improve naming

Modified:
   
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java

Modified: 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
==============================================================================
--- 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
    Fri Aug  8 09:06:16 2025        (r1927687)
+++ 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
    Fri Aug  8 10:00:49 2025        (r1927688)
@@ -264,7 +264,7 @@ public class Overlay implements Closeabl
         }
         if (allPagesOverlay != null)
         {
-            specificPageOverlayLayoutPageMap = getLayoutPages(allPagesOverlay);
+            specificPageOverlayLayoutPageMap = 
createPageOverlayLayoutPageMap(allPagesOverlay);
             useAllOverlayPages = true;
             numberOfOverlayPages = specificPageOverlayLayoutPageMap.size();
         }
@@ -281,14 +281,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;
         }
@@ -324,7 +324,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<Integer, 
LayoutPage>();
@@ -496,7 +496,7 @@ public class Overlay implements Closeabl
 
     private PDFormXObject createOverlayFormXObject(LayoutPage layoutPage)
     {
-        PDFormXObject xobjForm = new 
PDFormXObject(layoutPage.overlayContentStream);
+        PDFormXObject xobjForm = new 
PDFormXObject(layoutPage.overlayCOSStream);
         xobjForm.setResources(new PDResources(layoutPage.overlayResources));
         xobjForm.setFormType(1);
         
xobjForm.setBBox(layoutPage.overlayMediaBox.createRetranslatedRectangle());

Reply via email to