Class PdfObjectWriter
Serializes PDF objects (ISO 32000-2 7.3). Strings are written in hex (no escaping questions), names with #-escapes, streams with a recomputed /Length. A stream created in memory carries its data in CachedRawBytes.
public static class PdfObjectWriter
- Inheritance
-
PdfObjectWriter
- Inherited Members
Methods
EscapeName(string)
public static string EscapeName(string name)
Parameters
namestring
Returns
FormatReal(double)
public static string FormatReal(double v)
Parameters
vdouble
Returns
NewStream(IReadOnlyDictionary<string, PdfObject>, byte[])
A stream object created in memory.
public static PdfStream NewStream(IReadOnlyDictionary<string, PdfObject> entries, byte[] data)
Parameters
entriesIReadOnlyDictionary<string, PdfObject>databyte[]
Returns
TextString(string)
A text string (7.9.2.2): PDFDocEncoding-compatible Latin-1 when it fits, else UTF-16BE with a BOM.
public static PdfString TextString(string text)
Parameters
textstring
Returns
Write(Stream, PdfObject, bool)
public static void Write(Stream s, PdfObject obj, bool stripCrypt = false)