processDocument

open fun processDocument(@NonNull task: PdfProcessorTask, @NonNull outputFile: File)

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

NOTE: Document processing can take time do not run it on 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.


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

Starts the document processing on current thread.

NOTE: Document processing can take time do not run it on 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.