@@ -81,22 +81,22 @@ public enum Position
8181 private PDDocument inputPDFDocument = null ;
8282
8383 private String defaultOverlayFilename = null ;
84- private PDDocument defaultOverlay = null ;
84+ private PDDocument defaultOverlayDocument = null ;
8585
8686 private String firstPageOverlayFilename = null ;
87- private PDDocument firstPageOverlay = null ;
87+ private PDDocument firstPageOverlayDocument = null ;
8888
8989 private String lastPageOverlayFilename = null ;
90- private PDDocument lastPageOverlay = null ;
90+ private PDDocument lastPageOverlayDocument = null ;
9191
9292 private String allPagesOverlayFilename = null ;
93- private PDDocument allPagesOverlay = null ;
93+ private PDDocument allPagesOverlayDocument = null ;
9494
9595 private String oddPageOverlayFilename = null ;
96- private PDDocument oddPageOverlay = null ;
96+ private PDDocument oddPageOverlayDocument = null ;
9797
9898 private String evenPageOverlayFilename = null ;
99- private PDDocument evenPageOverlay = null ;
99+ private PDDocument evenPageOverlayDocument = null ;
100100
101101 private int numberOfOverlayPages = 0 ;
102102 private boolean useAllOverlayPages = false ;
@@ -174,29 +174,29 @@ public PDDocument overlayDocuments(Map<Integer, PDDocument> specificPageOverlayD
174174 @ Override
175175 public void close () throws IOException
176176 {
177- if (defaultOverlay != null )
177+ if (defaultOverlayDocument != null )
178178 {
179- defaultOverlay .close ();
179+ defaultOverlayDocument .close ();
180180 }
181- if (firstPageOverlay != null )
181+ if (firstPageOverlayDocument != null )
182182 {
183- firstPageOverlay .close ();
183+ firstPageOverlayDocument .close ();
184184 }
185- if (lastPageOverlay != null )
185+ if (lastPageOverlayDocument != null )
186186 {
187- lastPageOverlay .close ();
187+ lastPageOverlayDocument .close ();
188188 }
189- if (allPagesOverlay != null )
189+ if (allPagesOverlayDocument != null )
190190 {
191- allPagesOverlay .close ();
191+ allPagesOverlayDocument .close ();
192192 }
193- if (oddPageOverlay != null )
193+ if (oddPageOverlayDocument != null )
194194 {
195- oddPageOverlay .close ();
195+ oddPageOverlayDocument .close ();
196196 }
197- if (evenPageOverlay != null )
197+ if (evenPageOverlayDocument != null )
198198 {
199- evenPageOverlay .close ();
199+ evenPageOverlayDocument .close ();
200200 }
201201 for (PDDocument doc : openDocumentsSet )
202202 {
@@ -220,56 +220,56 @@ private void loadPDFs() throws IOException
220220 // default overlay PDF
221221 if (defaultOverlayFilename != null )
222222 {
223- defaultOverlay = loadPDF (defaultOverlayFilename );
223+ defaultOverlayDocument = loadPDF (defaultOverlayFilename );
224224 }
225- if (defaultOverlay != null )
225+ if (defaultOverlayDocument != null )
226226 {
227- defaultOverlayPage = createLayoutPageFromDocument (defaultOverlay );
227+ defaultOverlayPage = createLayoutPageFromDocument (defaultOverlayDocument );
228228 }
229229 // first page overlay PDF
230230 if (firstPageOverlayFilename != null )
231231 {
232- firstPageOverlay = loadPDF (firstPageOverlayFilename );
232+ firstPageOverlayDocument = loadPDF (firstPageOverlayFilename );
233233 }
234- if (firstPageOverlay != null )
234+ if (firstPageOverlayDocument != null )
235235 {
236- firstPageOverlayPage = createLayoutPageFromDocument (firstPageOverlay );
236+ firstPageOverlayPage = createLayoutPageFromDocument (firstPageOverlayDocument );
237237 }
238238 // last page overlay PDF
239239 if (lastPageOverlayFilename != null )
240240 {
241- lastPageOverlay = loadPDF (lastPageOverlayFilename );
241+ lastPageOverlayDocument = loadPDF (lastPageOverlayFilename );
242242 }
243- if (lastPageOverlay != null )
243+ if (lastPageOverlayDocument != null )
244244 {
245- lastPageOverlayPage = createLayoutPageFromDocument (lastPageOverlay );
245+ lastPageOverlayPage = createLayoutPageFromDocument (lastPageOverlayDocument );
246246 }
247247 // odd pages overlay PDF
248248 if (oddPageOverlayFilename != null )
249249 {
250- oddPageOverlay = loadPDF (oddPageOverlayFilename );
250+ oddPageOverlayDocument = loadPDF (oddPageOverlayFilename );
251251 }
252- if (oddPageOverlay != null )
252+ if (oddPageOverlayDocument != null )
253253 {
254- oddPageOverlayPage = createLayoutPageFromDocument (oddPageOverlay );
254+ oddPageOverlayPage = createLayoutPageFromDocument (oddPageOverlayDocument );
255255 }
256256 // even pages overlay PDF
257257 if (evenPageOverlayFilename != null )
258258 {
259- evenPageOverlay = loadPDF (evenPageOverlayFilename );
259+ evenPageOverlayDocument = loadPDF (evenPageOverlayFilename );
260260 }
261- if (evenPageOverlay != null )
261+ if (evenPageOverlayDocument != null )
262262 {
263- evenPageOverlayPage = createLayoutPageFromDocument (evenPageOverlay );
263+ evenPageOverlayPage = createLayoutPageFromDocument (evenPageOverlayDocument );
264264 }
265265 // all pages overlay PDF
266266 if (allPagesOverlayFilename != null )
267267 {
268- allPagesOverlay = loadPDF (allPagesOverlayFilename );
268+ allPagesOverlayDocument = loadPDF (allPagesOverlayFilename );
269269 }
270- if (allPagesOverlay != null )
270+ if (allPagesOverlayDocument != null )
271271 {
272- specificPageOverlayLayoutPageMap = createPageOverlayLayoutPageMap (allPagesOverlay );
272+ specificPageOverlayLayoutPageMap = createPageOverlayLayoutPageMap (allPagesOverlayDocument );
273273 useAllOverlayPages = true ;
274274 numberOfOverlayPages = specificPageOverlayLayoutPageMap .size ();
275275 }
@@ -677,7 +677,7 @@ public void setDefaultOverlayFile(String defaultOverlayFile)
677677 */
678678 public void setDefaultOverlayPDF (PDDocument defaultOverlayPDF )
679679 {
680- defaultOverlay = defaultOverlayPDF ;
680+ defaultOverlayDocument = defaultOverlayPDF ;
681681 }
682682
683683 /**
@@ -708,7 +708,7 @@ public void setFirstPageOverlayFile(String firstPageOverlayFile)
708708 */
709709 public void setFirstPageOverlayPDF (PDDocument firstPageOverlayPDF )
710710 {
711- firstPageOverlay = firstPageOverlayPDF ;
711+ firstPageOverlayDocument = firstPageOverlayPDF ;
712712 }
713713
714714 /**
@@ -729,7 +729,7 @@ public void setLastPageOverlayFile(String lastPageOverlayFile)
729729 */
730730 public void setLastPageOverlayPDF (PDDocument lastPageOverlayPDF )
731731 {
732- lastPageOverlay = lastPageOverlayPDF ;
732+ lastPageOverlayDocument = lastPageOverlayPDF ;
733733 }
734734
735735 /**
@@ -751,7 +751,7 @@ public void setAllPagesOverlayFile(String allPagesOverlayFile)
751751 */
752752 public void setAllPagesOverlayPDF (PDDocument allPagesOverlayPDF )
753753 {
754- allPagesOverlay = allPagesOverlayPDF ;
754+ allPagesOverlayDocument = allPagesOverlayPDF ;
755755 }
756756
757757 /**
@@ -772,7 +772,7 @@ public void setOddPageOverlayFile(String oddPageOverlayFile)
772772 */
773773 public void setOddPageOverlayPDF (PDDocument oddPageOverlayPDF )
774774 {
775- oddPageOverlay = oddPageOverlayPDF ;
775+ oddPageOverlayDocument = oddPageOverlayPDF ;
776776 }
777777
778778 /**
@@ -793,6 +793,6 @@ public void setEvenPageOverlayFile(String evenPageOverlayFile)
793793 */
794794 public void setEvenPageOverlayPDF (PDDocument evenPageOverlayPDF )
795795 {
796- evenPageOverlay = evenPageOverlayPDF ;
796+ evenPageOverlayDocument = evenPageOverlayPDF ;
797797 }
798798}
0 commit comments