CosDocumentBuilder class
Assembles a brand-new PDF file from scratch - the counterpart of CosIncrementalUpdater for output that does not extend an existing byte stream (extracted page ranges, merged documents, generated files).
Objects are numbered in registration order starting at 1. A container may be registered while still empty and filled in afterwards - nothing is serialized until build - which is how callers close reference cycles (a page referencing its parent tree node, say).
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
CosObject object) → CosReference -
Registers
objectand returns the reference it will be written under. -
build(
{required CosReference root, CosReference? info, String version = '1.7', bool objectStreams = false, int deflateLevel = 6}) → Uint8List -
Serializes the file: header, object bodies, a cross-reference section,
and the trailer.
rootmust reference the document catalog. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited