PdfParser class
Low-level PDF parser — reads PDF bytes and produces PDF objects.
This is the engine that powers the entire library, handling:
- PDF header parsing
- Cross-reference table reading (traditional + streams)
- Indirect object parsing
- Stream decompression
- Object resolution
- Incremental update handling
Properties
- catalog → PdfDict?
-
Get the root (catalog) dictionary.
no setter
- crossRef ↔ PdfCrossRefTable
-
Parsed cross-reference table.
getter/setter pair
- data → Uint8List
-
The raw PDF bytes.
final
- encryption ↔ PdfEncryption?
-
Encryption handler (null if no encryption).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → PdfDict?
-
Get the Info dictionary.
no setter
- isLinearized ↔ bool
-
Whether the PDF is linearized.
getter/setter pair
- objectCount → int
-
Get number of objects.
no setter
- pageCount → int
-
Get page count.
no setter
- pdfVersion ↔ String
-
PDF version string.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailer → PdfDict
-
Get the trailer dictionary.
no setter
Methods
-
getObject(
int objectNumber) → PdfIndirectObject? - Get a resolved indirect object by object number.
-
getPageDict(
int pageIndex) → PdfDict? - Get a page dict by 0-based index.
-
getPageObjectNumbers(
) → List< int> - Get all page object numbers in order.
-
getStreamData(
int objectNumber) → Uint8List? - Get decoded stream data for an object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
PdfObject obj) → PdfObject - Resolve a PdfRef to its actual object.
-
resolveDeep(
PdfObject obj) → PdfObject - Resolve a reference, returning the dict if it's a stream.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited