Table of Contents

Class PdfObjectWriter

Namespace
PdfEngine.Vector.Objects
Assembly
PdfEngine.Vector.dll

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

name string

Returns

string

FormatReal(double)

public static string FormatReal(double v)

Parameters

v double

Returns

string

NewStream(IReadOnlyDictionary<string, PdfObject>, byte[])

A stream object created in memory.

public static PdfStream NewStream(IReadOnlyDictionary<string, PdfObject> entries, byte[] data)

Parameters

entries IReadOnlyDictionary<string, PdfObject>
data byte[]

Returns

PdfStream

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

text string

Returns

PdfString

Write(Stream, PdfObject, bool)

public static void Write(Stream s, PdfObject obj, bool stripCrypt = false)

Parameters

s Stream
obj PdfObject
stripCrypt bool

Drop a /Crypt filter from streams whose data was decrypted on read.