File tree Expand file tree Collapse file tree 3 files changed +1
-26
lines changed
itext/itext.kernel/itext/kernel/pdf Expand file tree Collapse file tree 3 files changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ public class PdfWriter : PdfOutputStream {
55
55
56
56
private static readonly byte [ ] endobj = ByteUtils . GetIsoBytes ( "\n endobj\n " ) ;
57
57
58
- // For internal usage only
59
- private PdfOutputStream duplicateStream = null ;
60
-
61
58
protected internal WriterProperties properties ;
62
59
63
60
/// <summary>Currently active object stream.</summary>
@@ -97,9 +94,6 @@ public PdfWriter(Stream os)
97
94
public PdfWriter ( Stream os , WriterProperties properties )
98
95
: base ( new CountOutputStream ( FileUtil . WrapWithBufferedOutputStream ( os ) ) ) {
99
96
this . properties = properties ;
100
- if ( properties . debugMode ) {
101
- duplicateStream = new PdfOutputStream ( new ByteArrayOutputStream ( ) ) ;
102
- }
103
97
}
104
98
105
99
/// <summary>Create a PdfWriter writing to the passed filename and with default writer properties.</summary>
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ public class WriterProperties {
57
57
/// </remarks>
58
58
protected internal bool smartMode ;
59
59
60
- protected internal bool debugMode ;
61
-
62
60
protected internal bool addXmpMetadata ;
63
61
64
62
protected internal bool addUAXmpMetadata ;
@@ -75,7 +73,6 @@ public class WriterProperties {
75
73
76
74
public WriterProperties ( ) {
77
75
smartMode = false ;
78
- debugMode = false ;
79
76
addUAXmpMetadata = false ;
80
77
compressionLevel = CompressionConstants . DEFAULT_COMPRESSION ;
81
78
isFullCompression = null ;
@@ -340,22 +337,6 @@ public virtual iText.Kernel.Pdf.WriterProperties SetModifiedDocumentId(PdfString
340
337
return this ;
341
338
}
342
339
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
-
359
340
/// <summary>This method marks the document as PDF/UA and sets related flags is XMPMetaData.</summary>
360
341
/// <remarks>
361
342
/// This method marks the document as PDF/UA and sets related flags is XMPMetaData.
Original file line number Diff line number Diff line change 1
- b698c88ae73deeb8bd4acd055698ebefa17f27a0
1
+ 3cc23ad84077bd9c03b15d9eb7ede8f3c6c3054e
You can’t perform that action at this time.
0 commit comments