File/Blob or whole PDF bytes; caller-owned buffers are copied before worker transfer.
Password, assets, resource limits, a borrowed OCR provider, and the
composite/annotations image export defaults (both false).
A document to close in a finally block. Closing it never closes the supplied OCR provider.
PdfExtractError for invalid/password-protected input, invalid options, cancellation or resource limits.
Open a whole PDF and return a caller-owned document handle.