processDocument

Starts the document processing on the current thread. This will use the default DocumentSaveOptions for the processed document.

NOTE: Document processing can take time; do not run it on the main thread.

Parameters

task

Defined processing task.

outputFile

Output PDF file to be written.

See also

Throws

if there was an issue while processing.

If the outputFile points to the original input file.


fun processDocument(task: PdfProcessorTask, outputFile: File, saveOptions: DocumentSaveOptions)

Starts the document processing on the current thread.

NOTE: Document processing can take time; do not run it on the main thread.

Parameters

task

Defined processing task.

outputFile

Output PDF file to be written.

saveOptions

Save options defining password protection, permissions, etc.

Throws

if there was an issue while processing.

If the outputFile points to the original input file.