Reads all objects from the stream and constructs a PdfDocument.
A promise that resolves to the parsed PdfDocument
StaticfromCreates a PdfDocument directly from a byte stream. Convenience method that creates a reader internally.
A promise that resolves to the parsed PdfDocument
A reader for parsing PDF data into PdfDocument instances. Processes streams of PDF objects and constructs documents from them.
Example