public PDFDocument(path as Path, maximumStreamSize as Int = 67108864)
Opens a PDF from a Path, with the same limits as the String overload.
| Parameter | Description |
|---|---|
path | Source file. |
maximumStreamSize | Maximum decoded bytes per stream. |
try document = PDFDocument(Path.userHome.resolve("report.pdf")):
print(document.pages[0].getText())