Skip to content

Commit 225644e

Browse files
Remove debugMode option from WriterProperties
It was related to pdfDebug only. DEVSIX-5706 Autoported commit. Original commit hash: [1340151f2] Manual files: commons/pom.xml
1 parent 282c3cf commit 225644e

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

itext/itext.kernel/itext/kernel/pdf/PdfWriter.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ public class PdfWriter : PdfOutputStream {
5555

5656
private static readonly byte[] endobj = ByteUtils.GetIsoBytes("\nendobj\n");
5757

58-
// For internal usage only
59-
private PdfOutputStream duplicateStream = null;
60-
6158
protected internal WriterProperties properties;
6259

6360
/// <summary>Currently active object stream.</summary>
@@ -97,9 +94,6 @@ public PdfWriter(Stream os)
9794
public PdfWriter(Stream os, WriterProperties properties)
9895
: base(new CountOutputStream(FileUtil.WrapWithBufferedOutputStream(os))) {
9996
this.properties = properties;
100-
if (properties.debugMode) {
101-
duplicateStream = new PdfOutputStream(new ByteArrayOutputStream());
102-
}
10397
}
10498

10599
/// <summary>Create a PdfWriter writing to the passed filename and with default writer properties.</summary>

itext/itext.kernel/itext/kernel/pdf/WriterProperties.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ public class WriterProperties {
5757
/// </remarks>
5858
protected internal bool smartMode;
5959

60-
protected internal bool debugMode;
61-
6260
protected internal bool addXmpMetadata;
6361

6462
protected internal bool addUAXmpMetadata;
@@ -75,7 +73,6 @@ public class WriterProperties {
7573

7674
public WriterProperties() {
7775
smartMode = false;
78-
debugMode = false;
7976
addUAXmpMetadata = false;
8077
compressionLevel = CompressionConstants.DEFAULT_COMPRESSION;
8178
isFullCompression = null;
@@ -340,22 +337,6 @@ public virtual iText.Kernel.Pdf.WriterProperties SetModifiedDocumentId(PdfString
340337
return this;
341338
}
342339

343-
/// <summary>This activates debug mode with pdfDebug tool.</summary>
344-
/// <remarks>
345-
/// This activates debug mode with pdfDebug tool.
346-
/// It causes additional overhead of duplicating document bytes into memory, so use it careful.
347-
/// NEVER use it in production or in any other cases except pdfDebug.
348-
/// </remarks>
349-
/// <returns>
350-
/// this
351-
/// <see cref="WriterProperties"/>
352-
/// instance
353-
/// </returns>
354-
public virtual iText.Kernel.Pdf.WriterProperties UseDebugMode() {
355-
this.debugMode = true;
356-
return this;
357-
}
358-
359340
/// <summary>This method marks the document as PDF/UA and sets related flags is XMPMetaData.</summary>
360341
/// <remarks>
361342
/// This method marks the document as PDF/UA and sets related flags is XMPMetaData.

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b698c88ae73deeb8bd4acd055698ebefa17f27a0
1+
3cc23ad84077bd9c03b15d9eb7ede8f3c6c3054e

0 commit comments

Comments
 (0)