Skip to content

Commit efa2a06

Browse files
committed
PDFBOX-6049: improve naming
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1927693 13f79535-47bb-0310-9956-ffa450edef68
1 parent 84b6a9d commit efa2a06

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public PDDocument overlay(Map<Integer, String> specificPageOverlayMap) throws IO
127127
if (layoutPage == null)
128128
{
129129
PDDocument doc = loadPDF(path);
130-
layoutPage = getLayoutPage(doc);
130+
layoutPage = createLayoutPageFromDocument(doc);
131131
layouts.put(path, layoutPage);
132132
openDocumentsSet.add(doc);
133133
}
@@ -159,7 +159,7 @@ public PDDocument overlayDocuments(Map<Integer, PDDocument> specificPageOverlayD
159159
PDDocument doc = e.getValue();
160160
if (doc != null)
161161
{
162-
specificPageOverlayLayoutPageMap.put(e.getKey(), getLayoutPage(doc));
162+
specificPageOverlayLayoutPageMap.put(e.getKey(), createLayoutPageFromDocument(doc));
163163
}
164164
}
165165
processPages(inputPDFDocument);
@@ -224,7 +224,7 @@ private void loadPDFs() throws IOException
224224
}
225225
if (defaultOverlay != null)
226226
{
227-
defaultOverlayPage = getLayoutPage(defaultOverlay);
227+
defaultOverlayPage = createLayoutPageFromDocument(defaultOverlay);
228228
}
229229
// first page overlay PDF
230230
if (firstPageOverlayFilename != null)
@@ -233,7 +233,7 @@ private void loadPDFs() throws IOException
233233
}
234234
if (firstPageOverlay != null)
235235
{
236-
firstPageOverlayPage = getLayoutPage(firstPageOverlay);
236+
firstPageOverlayPage = createLayoutPageFromDocument(firstPageOverlay);
237237
}
238238
// last page overlay PDF
239239
if (lastPageOverlayFilename != null)
@@ -242,7 +242,7 @@ private void loadPDFs() throws IOException
242242
}
243243
if (lastPageOverlay != null)
244244
{
245-
lastPageOverlayPage = getLayoutPage(lastPageOverlay);
245+
lastPageOverlayPage = createLayoutPageFromDocument(lastPageOverlay);
246246
}
247247
// odd pages overlay PDF
248248
if (oddPageOverlayFilename != null)
@@ -251,7 +251,7 @@ private void loadPDFs() throws IOException
251251
}
252252
if (oddPageOverlay != null)
253253
{
254-
oddPageOverlayPage = getLayoutPage(oddPageOverlay);
254+
oddPageOverlayPage = createLayoutPageFromDocument(oddPageOverlay);
255255
}
256256
// even pages overlay PDF
257257
if (evenPageOverlayFilename != null)
@@ -260,7 +260,7 @@ private void loadPDFs() throws IOException
260260
}
261261
if (evenPageOverlay != null)
262262
{
263-
evenPageOverlayPage = getLayoutPage(evenPageOverlay);
263+
evenPageOverlayPage = createLayoutPageFromDocument(evenPageOverlay);
264264
}
265265
// all pages overlay PDF
266266
if (allPagesOverlayFilename != null)
@@ -306,7 +306,7 @@ private LayoutPage(PDRectangle mediaBox, COSStream contentStream, COSDictionary
306306
* @return
307307
* @throws IOException
308308
*/
309-
private LayoutPage getLayoutPage(PDDocument doc) throws IOException
309+
private LayoutPage createLayoutPageFromDocument(PDDocument doc) throws IOException
310310
{
311311
return createLayoutPage(doc.getPage(0));
312312
}

0 commit comments

Comments
 (0)