createDocument

abstract fun createDocument(context: Context, core: PdfiumCore, password: String?): Long

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.