/// <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); }
/// <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); }