@@ -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