createDocument
Creates a PDF document from this source.
Parameters
context
The application context.
core
The {@link PdfiumCore} instance for document handling.
password
The password to open the document, if required.
Throws
If an error occurs during document creation.