Skip to content

Commit 658457e

Browse files
Add DEVSIX reference to TODOs in tagging utilities for proper tags removal
DEVSIX-5472 Autoported commit. Original commit hash: [01bf7cb63]
1 parent 3304ecd commit 658457e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

itext/itext.kernel/itext/kernel/pdf/tagutils/TagStructureContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,8 @@ private void RemovePageTagFromParent(IStructureNode pageTag, IStructureNode pare
848848
RemovePageTagFromParent(structParent, parent.GetParent());
849849
PdfIndirectReference indRef = parentStructDict.GetIndirectReference();
850850
if (indRef != null) {
851-
// TODO how about possible references to structure element from refs or structure destination for instance?
851+
// TODO DEVSIX-5472 need to clean references to structure element from
852+
// other structure elements /Ref entries and structure destinations
852853
indRef.SetFree();
853854
}
854855
}

itext/itext.kernel/itext/kernel/pdf/tagutils/TagTreePointer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ public virtual iText.Kernel.Pdf.Tagutils.TagTreePointer RemoveTag() {
509509
int removedKidIndex = parent.RemoveKid(currentStructElem);
510510
PdfIndirectReference indRef = currentStructElem.GetPdfObject().GetIndirectReference();
511511
if (indRef != null) {
512-
// TODO how about possible references to structure element from refs or structure destination for instance?
512+
// TODO DEVSIX-5472 need to clean references to structure element from
513+
// other structure elements /Ref entries and structure destinations
513514
indRef.SetFree();
514515
}
515516
foreach (IStructureNode kid in kids) {

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f8771af2f52833c1c967a729a80ebb4d6b14056f
1+
377d5f5dd9988723b09077fcbc85c35a3df04f73

0 commit comments

Comments
 (0)