java.lang.Object | |
↳ | com.pspdfkit.document.processor.PdfProcessor |
Copy, merge or modify PDF documents. It also allows flattening and filtering of annotation data.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | PdfProcessor.ProcessorProgress | Object representing processing progress. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
processDocument(PdfProcessorTask task, File outputFile)
Starts the document processing on current thread.
| ||||||||||
static void |
processDocument(PdfProcessorTask task, File outputFile, DocumentSaveOptions saveOptions)
Starts the document processing on current thread.
| ||||||||||
static Flowable<PdfProcessor.ProcessorProgress> |
processDocumentAsync(PdfProcessorTask task, OutputStream outputStream, DocumentSaveOptions saveOptions)
Starts the document processing.
| ||||||||||
static Flowable<PdfProcessor.ProcessorProgress> |
processDocumentAsync(PdfProcessorTask task, OutputStream outputStream)
Starts the document processing, using the default
DocumentSaveOptions for the
processed document. | ||||||||||
static Flowable<PdfProcessor.ProcessorProgress> |
processDocumentAsync(PdfProcessorTask task, File outputFile)
Starts the document processing, using the default
DocumentSaveOptions for the
processed document. | ||||||||||
static Flowable<PdfProcessor.ProcessorProgress> |
processDocumentAsync(PdfProcessorTask task, File outputFile, DocumentSaveOptions saveOptions)
Starts the document processing.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Starts the document processing on current thread. This will use the default DocumentSaveOptions
for the processed document.
NOTE: Document processing can take time do not run it on main thread.
task | Defined processing task. |
---|---|
outputFile | Output PDF file to be written. |
PdfProcessorException | if there was an issue while processing. |
---|---|
IllegalStateException | If the outputFile points to the original input file. |
Starts the document processing on current thread.
NOTE: Document processing can take time do not run it on main thread.
task | Defined processing task. |
---|---|
outputFile | Output PDF file to be written. |
saveOptions | Save options defining password protection, permissions, etc. |
PdfProcessorException | if there was an issue while processing. |
---|---|
IllegalStateException | If the outputFile points to the original input file. |
Starts the document processing.
NOTE: This does not work with stripEmptyPages(boolean)
as
it needs to reopen processed document which is not possible with OutputStream
.
NOTE: Returned observable doesn't have target thread set so use subscribeOn(Scheduler)
to choose the thread to run processing on.
task | Defined processing task. |
---|---|
outputStream | Output stream for writing output PDF data. |
saveOptions | Save options defining password protection, permissions, etc. |
Starts the document processing, using the default DocumentSaveOptions
for the
processed document.
NOTE: This does not work with stripEmptyPages(boolean)
as
it needs to reopen processed document which is not possible with OutputStream
.
NOTE: Returned observable doesn't have target thread set so use subscribeOn(Scheduler)
to choose the thread to run processing on.
task | Defined processing task. |
---|---|
outputStream | Output stream for writing output PDF data. |
Starts the document processing, using the default DocumentSaveOptions
for the
processed document.
NOTE: Returned observable doesn't have target thread set so use subscribeOn(Scheduler)
to choose the thread to run processing on.
task | Defined processing task. |
---|---|
outputFile | Output PDF file to be written. |
IllegalStateException | If the outputFile points to the original input file. |
---|
Starts the document processing.
NOTE: Returned observable doesn't have target thread set so use subscribeOn(Scheduler)
to choose the thread to run processing on.
task | Defined processing task. |
---|---|
outputFile | Output PDF file to be written. |
saveOptions | Save options defining password protection, permissions, etc. |
IllegalStateException | If the outputFile points to the original input file. |
---|