PdfCosParser
Overview
PdfCosParser is a class in Aspose.PDF FOSS for Python.
Parse a PDF file (bytes) into a :class:PdfDocument.
This class provides 3 methods for working with PdfCosParser objects in Python programs.
Available methods include: __init__, get_object, parse.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: trailer.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
trailer | PdfDictionary | Read | Gets the trailer. |
Methods
| Signature | Description |
|---|---|
__init__(data, limits: PdfLoadLimits | None, budget: _LoadBudget | None) | Calls init(data, limits, budget) on this PdfCosParser instance. |
parse() → PdfDocument | Calls parse on this PdfCosParser instance. |
get_object(ref: PdfIndirectReference) → Any | Retrieve a parsed object by its indirect reference. |