Opens a File as a PdfDocument in the given engine — PDFs directly,
images converted to a one-page-per-image document. The returned document lives
in engine's worker, so its pages can be imported into another document from
the same engine (e.g. via PdfDocument.setPages).
The caller owns the returned document. When its pages are borrowed into
another document, keep it open for as long as they are referenced.
passwordProvider is consulted when the file is an encrypted PDF; images
never need it.
Opens a
Fileas a PdfDocument in the given engine — PDFs directly, images converted to a one-page-per-image document. The returned document lives inengine's worker, so its pages can be imported into another document from the same engine (e.g. via PdfDocument.setPages).The caller owns the returned document. When its pages are borrowed into another document, keep it open for as long as they are referenced.
passwordProvideris consulted when the file is an encrypted PDF; images never need it.