We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb84ff9 commit aa4f6d6Copy full SHA for aa4f6d6
itext/itext.kernel/itext/kernel/pdf/PdfDocument.cs
@@ -714,7 +714,7 @@ public virtual void Close() {
714
PdfIndirectReference indirectReference = xref.Get(i);
715
if (indirectReference != null && !indirectReference.IsFree() && !indirectReference.CheckState(PdfObject.FLUSHED
716
)) {
717
- if (IsFlushUnusedObjects()) {
+ if (IsFlushUnusedObjects() && !indirectReference.CheckState(PdfObject.ORIGINAL_OBJECT_STREAM)) {
718
PdfObject @object = indirectReference.GetRefersTo();
719
@object.Flush();
720
}
port-hash
@@ -1 +1 @@
1
-57c22ebed0df0d237deb1e8f426e36bd877b78ee
+422c699fa551196e2e0f3bfdcef6aa90c55e04dd
0 commit comments