Skip to content

Commit ccf4dc1

Browse files
committed
Update IPdfPageExtraCopier java doc
SUP-2058
1 parent 064080c commit ccf4dc1

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfDocument.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,9 @@ public List<PdfPage> copyPagesTo(int pageFrom, int pageTo, PdfDocument toDocumen
10051005
* @param pageTo 1-based end of the range of pages to be copied.
10061006
* @param toDocument a document to copy pages to.
10071007
* @param insertBeforePage a position where to insert copied pages.
1008-
* @param copier a copier which bears a special copy logic. May be NULL
1008+
* @param copier a copier which bears a special copy logic. May be null.
1009+
* It is recommended to use the same instance of {@link IPdfPageExtraCopier}
1010+
* for the same output document.
10091011
* @return list of new copied pages
10101012
*/
10111013
public List<PdfPage> copyPagesTo(int pageFrom, int pageTo, PdfDocument toDocument, int insertBeforePage, IPdfPageExtraCopier copier) {
@@ -1039,6 +1041,8 @@ public List<PdfPage> copyPagesTo(int pageFrom, int pageTo, PdfDocument toDocumen
10391041
* @param pageTo 1-based end of the range of pages to be copied.
10401042
* @param toDocument a document to copy pages to.
10411043
* @param copier a copier which bears a special copy logic. May be null.
1044+
* It is recommended to use the same instance of {@link IPdfPageExtraCopier}
1045+
* for the same output document.
10421046
* @return list of new copied pages.
10431047
*/
10441048
public List<PdfPage> copyPagesTo(int pageFrom, int pageTo, PdfDocument toDocument, IPdfPageExtraCopier copier) {
@@ -1067,7 +1071,9 @@ public List<PdfPage> copyPagesTo(List<Integer> pagesToCopy, PdfDocument toDocume
10671071
* @param pagesToCopy list of pages to be copied. TreeSet for the order of the pages to be natural.
10681072
* @param toDocument a document to copy pages to.
10691073
* @param insertBeforePage a position where to insert copied pages.
1070-
* @param copier a copier which bears a special copy logic. May be NULL
1074+
* @param copier a copier which bears a special copy logic. May be null.
1075+
* It is recommended to use the same instance of {@link IPdfPageExtraCopier}
1076+
* for the same output document.
10711077
* @return list of new copied pages
10721078
*/
10731079
public List<PdfPage> copyPagesTo(List<Integer> pagesToCopy, PdfDocument toDocument, int insertBeforePage, IPdfPageExtraCopier copier) {
@@ -1166,7 +1172,9 @@ public List<PdfPage> copyPagesTo(List<Integer> pagesToCopy, PdfDocument toDocume
11661172
*
11671173
* @param pagesToCopy list of pages to be copied. TreeSet for the order of the pages to be natural.
11681174
* @param toDocument a document to copy pages to.
1169-
* @param copier a copier which bears a special copy logic
1175+
* @param copier a copier which bears a special copy logic. May be null.
1176+
* It is recommended to use the same instance of {@link IPdfPageExtraCopier}
1177+
* for the same output document.
11701178
* @return list of copied pages
11711179
*/
11721180
public List<PdfPage> copyPagesTo(List<Integer> pagesToCopy, PdfDocument toDocument, IPdfPageExtraCopier copier) {

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfPage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ public PdfPage copyTo(PdfDocument toDocument) {
367367
* NOTE: Works only for pages from the document opened in reading mode, otherwise an exception is thrown.
368368
*
369369
* @param toDocument a document to copy page to.
370-
* @param copier a copier which bears a specific copy logic. May be {@code null}
370+
* @param copier a copier which bears a special copy logic. May be null.
371+
* It is recommended to use the same instance of {@link IPdfPageExtraCopier}
372+
* for the same output document.
371373
* @return copied {@link PdfPage}.
372374
*/
373375
public PdfPage copyTo(PdfDocument toDocument, IPdfPageExtraCopier copier) {

0 commit comments

Comments
 (0)