コード例 #1
0
ファイル: PdfInternals.cs プロジェクト: tofilagman/PDFSharp
 /// <summary>
 /// Writes a PdfItem into the specified stream.
 /// </summary>
 // This function exists to keep PdfWriter and PdfItem.WriteObject internal.
 public void WriteObject(Stream stream, PdfItem item)
 {
     // Never write an encrypted object
     PdfWriter writer = new PdfWriter(stream, null);
     writer.Options = PdfWriterOptions.OmitStream;
     item.WriteObject(writer);
 }
コード例 #2
0
ファイル: PdfInternals.cs プロジェクト: jaustin-sbm/pdfsharp
        /// <summary>
        /// Writes a PdfItem into the specified stream.
        /// </summary>
        // This function exists to keep PdfWriter and PdfItem.WriteObject internal.
        public void WriteObject(Stream stream, PdfItem item)
        {
            // Never write an encrypted object
            PdfWriter writer = new PdfWriter(stream, null);

            writer.Options = PdfWriterOptions.OmitStream;
            if (document.Options.PdfACompat)
            {
                writer.Options |= PdfWriterOptions.PdfACompat;
            }
            item.WriteObject(writer);
        }