Author: tilman
Date: Fri Aug 8 10:07:04 2025
New Revision: 1927692
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:07:00 2025 (r1927691)
+++
pdfbox/branches/3.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
Fri Aug 8 10:07:04 2025 (r1927692)
@@ -124,7 +124,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);
}
@@ -156,7 +156,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);
@@ -221,7 +221,7 @@ public class Overlay implements Closeabl
}
if (defaultOverlay != null)
{
- defaultOverlayPage = getLayoutPage(defaultOverlay);
+ defaultOverlayPage = createLayoutPageFromDocument(defaultOverlay);
}
// first page overlay PDF
if (firstPageOverlayFilename != null)
@@ -230,7 +230,7 @@ public class Overlay implements Closeabl
}
if (firstPageOverlay != null)
{
- firstPageOverlayPage = getLayoutPage(firstPageOverlay);
+ firstPageOverlayPage =
createLayoutPageFromDocument(firstPageOverlay);
}
// last page overlay PDF
if (lastPageOverlayFilename != null)
@@ -239,7 +239,7 @@ public class Overlay implements Closeabl
}
if (lastPageOverlay != null)
{
- lastPageOverlayPage = getLayoutPage(lastPageOverlay);
+ lastPageOverlayPage =
createLayoutPageFromDocument(lastPageOverlay);
}
// odd pages overlay PDF
if (oddPageOverlayFilename != null)
@@ -248,7 +248,7 @@ public class Overlay implements Closeabl
}
if (oddPageOverlay != null)
{
- oddPageOverlayPage = getLayoutPage(oddPageOverlay);
+ oddPageOverlayPage = createLayoutPageFromDocument(oddPageOverlay);
}
// even pages overlay PDF
if (evenPageOverlayFilename != null)
@@ -257,7 +257,7 @@ public class Overlay implements Closeabl
}
if (evenPageOverlay != null)
{
- evenPageOverlayPage = getLayoutPage(evenPageOverlay);
+ evenPageOverlayPage =
createLayoutPageFromDocument(evenPageOverlay);
}
// all pages overlay PDF
if (allPagesOverlayFilename != null)
@@ -303,7 +303,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));
}