Author: tilman
Date: Fri Aug  8 10:07:07 2025
New Revision: 1927693

Log:
PDFBOX-6049: improve naming

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

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java   
Fri Aug  8 10:07:04 2025        (r1927692)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java   
Fri Aug  8 10:07:07 2025        (r1927693)
@@ -127,7 +127,7 @@ public class Overlay implements Closeabl
             if (layoutPage == null)
             {
                 PDDocument doc = loadPDF(path);
-                layoutPage = getLayoutPage(doc);
+                layoutPage = createLayoutPageFromDocument(doc);
                 layouts.put(path, layoutPage);
                 openDocumentsSet.add(doc);
             }
@@ -159,7 +159,7 @@ public class Overlay implements Closeabl
             PDDocument doc = e.getValue();
             if (doc != null)
             {
-                specificPageOverlayLayoutPageMap.put(e.getKey(), 
getLayoutPage(doc));
+                specificPageOverlayLayoutPageMap.put(e.getKey(), 
createLayoutPageFromDocument(doc));
             }
         }
         processPages(inputPDFDocument);
@@ -224,7 +224,7 @@ public class Overlay implements Closeabl
         }
         if (defaultOverlay != null)
         {
-            defaultOverlayPage = getLayoutPage(defaultOverlay);
+            defaultOverlayPage = createLayoutPageFromDocument(defaultOverlay);
         }
         // first page overlay PDF
         if (firstPageOverlayFilename != null)
@@ -233,7 +233,7 @@ public class Overlay implements Closeabl
         }
         if (firstPageOverlay != null)
         {
-            firstPageOverlayPage = getLayoutPage(firstPageOverlay);
+            firstPageOverlayPage = 
createLayoutPageFromDocument(firstPageOverlay);
         }
         // last page overlay PDF
         if (lastPageOverlayFilename != null)
@@ -242,7 +242,7 @@ public class Overlay implements Closeabl
         }
         if (lastPageOverlay != null)
         {
-            lastPageOverlayPage = getLayoutPage(lastPageOverlay);
+            lastPageOverlayPage = 
createLayoutPageFromDocument(lastPageOverlay);
         }
         // odd pages overlay PDF
         if (oddPageOverlayFilename != null)
@@ -251,7 +251,7 @@ public class Overlay implements Closeabl
         }
         if (oddPageOverlay != null)
         {
-            oddPageOverlayPage = getLayoutPage(oddPageOverlay);
+            oddPageOverlayPage = createLayoutPageFromDocument(oddPageOverlay);
         }
         // even pages overlay PDF
         if (evenPageOverlayFilename != null)
@@ -260,7 +260,7 @@ public class Overlay implements Closeabl
         }
         if (evenPageOverlay != null)
         {
-            evenPageOverlayPage = getLayoutPage(evenPageOverlay);
+            evenPageOverlayPage = 
createLayoutPageFromDocument(evenPageOverlay);
         }
         // all pages overlay PDF
         if (allPagesOverlayFilename != null)
@@ -306,7 +306,7 @@ public class Overlay implements Closeabl
      * @return
      * @throws IOException 
      */
-    private LayoutPage getLayoutPage(PDDocument doc) throws IOException
+    private LayoutPage createLayoutPageFromDocument(PDDocument doc) throws 
IOException
     {
         return createLayoutPage(doc.getPage(0));
     }

Reply via email to