Skip to content

Commit 377d5f5

Browse files
yulian-gaponenkoiText-CI
authored andcommitted
Add DEVSIX reference to TODOs in tagging utilities for proper tags removal
DEVSIX-5472
1 parent 1959f7d commit 377d5f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/tagutils/TagStructureContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ private void removePageTagFromParent(IStructureNode pageTag, IStructureNode pare
643643
removePageTagFromParent(structParent, parent.getParent());
644644
PdfIndirectReference indRef = parentStructDict.getIndirectReference();
645645
if (indRef != null) {
646-
// TODO how about possible references to structure element from refs or structure destination for instance?
646+
// TODO DEVSIX-5472 need to clean references to structure element from
647+
// other structure elements /Ref entries and structure destinations
647648
indRef.setFree();
648649
}
649650
}

kernel/src/main/java/com/itextpdf/kernel/pdf/tagutils/TagTreePointer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ public TagTreePointer removeTag() {
359359

360360
PdfIndirectReference indRef = currentStructElem.getPdfObject().getIndirectReference();
361361
if (indRef != null) {
362-
// TODO how about possible references to structure element from refs or structure destination for instance?
362+
// TODO DEVSIX-5472 need to clean references to structure element from
363+
// other structure elements /Ref entries and structure destinations
363364
indRef.setFree();
364365
}
365366

0 commit comments

Comments
 (0)