Skip to content

Commit f1b9e19

Browse files
committed
Remove redundant Widget check in PdfWriter#copyObject()
DEVSIX-1228
1 parent 0d4f6f2 commit f1b9e19

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,6 @@ protected PdfObject copyObject(PdfObject obj, PdfDocument documentTo, boolean al
347347
return copiedIndirectReference.getRefersTo();
348348
}
349349

350-
if (obj.isDictionary()) {
351-
PdfName subtype = ((PdfDictionary) obj).getAsName(PdfName.Subtype);
352-
if (subtype != null && subtype.equals(PdfName.Widget)) {
353-
tryToFindDuplicate = false;
354-
}
355-
}
356-
357350
SerializedObjectContent serializedContent = null;
358351
if (properties.smartMode && tryToFindDuplicate && !checkTypeOfPdfDictionary(obj, PdfName.Page)) {
359352
serializedContent = smartModeSerializer.serializeObject(obj);

0 commit comments

Comments
 (0)