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 {
5555
5656 private static readonly byte [ ] endobj = ByteUtils . GetIsoBytes ( "\n endobj\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>
Original file line number Diff line number Diff 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.
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