Skip to content

Commit 84b6a9d

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ private void loadPDFs() throws IOException
269269
}
270270
if (allPagesOverlay != null)
271271
{
272-
specificPageOverlayLayoutPageMap = getLayoutPages(allPagesOverlay);
272+
specificPageOverlayLayoutPageMap = createPageOverlayLayoutPageMap(allPagesOverlay);
273273
useAllOverlayPages = true;
274274
numberOfOverlayPages = specificPageOverlayLayoutPageMap.size();
275275
}
@@ -286,14 +286,14 @@ private PDDocument loadPDF(String pdfName) throws IOException
286286
private static final class LayoutPage
287287
{
288288
private final PDRectangle overlayMediaBox;
289-
private final COSStream overlayContentStream;
289+
private final COSStream overlayCOSStream;
290290
private final COSDictionary overlayResources;
291291
private final short overlayRotation;
292292

293293
private LayoutPage(PDRectangle mediaBox, COSStream contentStream, COSDictionary resources, short rotation)
294294
{
295295
overlayMediaBox = mediaBox;
296-
overlayContentStream = contentStream;
296+
overlayCOSStream = contentStream;
297297
overlayResources = resources;
298298
overlayRotation = rotation;
299299
}
@@ -329,7 +329,7 @@ private LayoutPage createLayoutPage(PDPage page) throws IOException
329329
resources.getCOSObject(), (short) page.getRotation());
330330
}
331331

332-
private Map<Integer,LayoutPage> getLayoutPages(PDDocument doc) throws IOException
332+
private Map<Integer,LayoutPage> createPageOverlayLayoutPageMap(PDDocument doc) throws IOException
333333
{
334334
int i = 0;
335335
Map<Integer, LayoutPage> layoutPages = new HashMap<>();
@@ -506,7 +506,7 @@ else if (useAllOverlayPages)
506506
private PDFormXObject createOverlayFormXObject(LayoutPage layoutPage, PDFCloneUtility cloner)
507507
throws IOException
508508
{
509-
PDFormXObject xobjForm = new PDFormXObject(layoutPage.overlayContentStream);
509+
PDFormXObject xobjForm = new PDFormXObject(layoutPage.overlayCOSStream);
510510
xobjForm.setResources(new PDResources(
511511
cloner.cloneForNewDocument(layoutPage.overlayResources)));
512512
xobjForm.setFormType(1);

0 commit comments

Comments
 (0)