Skip to content

Commit 46fe38c

Browse files
committed
Remove unnecessary copying of structParents key; update cmps.
1 parent 3312d13 commit 46fe38c

22 files changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,6 @@ public PdfPage copyTo(PdfDocument toDocument, IPdfPageExtraCopier copier) {
388388
page.addAnnotation(-1, newAnnot, false);
389389
}
390390
}
391-
if (toDocument.isTagged()) {
392-
int structParents = (int) toDocument.getNextStructParentIndex();
393-
page.getPdfObject().put(PdfName.StructParents, new PdfNumber(structParents));
394-
}
395391

396392
if (copier != null) {
397393
copier.copy(this, page);

0 commit comments

Comments
 (0)