Pdf Processor Task
class PdfProcessorTask
Represents a processing task for PdfProcessor.
Functions
Link copied to clipboard
open fun addCanvasDrawingToPage(@NonNull pageCanvas: PageCanvas, destinationPageIndex: Int): PdfProcessorTask
Merges content of canvas drawing on top (or below) the destination page content.
Link copied to clipboard
Adds an image on top (or below) the destination page content.
Link copied to clipboard
open fun addNewPage(@NonNull newPage: NewPage, @IntRange(from = 0 ) destinationPageIndex: Int): PdfProcessorTask
Adds a new page to the document at passed index.
Link copied to clipboard
Applies the redact annotations for the given page index.
Link copied to clipboard
open fun changeAllAnnotations(@NonNull processingMode: PdfProcessorTask.AnnotationProcessingMode): PdfProcessorTask
Changes ALL annotations in document according to AnnotationProcessingMode.
Link copied to clipboard
open fun changeAnnotations(@NonNull annotations: List<Annotation>, @NonNull processingMode: PdfProcessorTask.AnnotationProcessingMode): PdfProcessorTask
Changes passed annotations according to passed AnnotationProcessingMode.
Link copied to clipboard
open fun changeAnnotationsOfType(@NonNull annotationType: AnnotationType, @NonNull processingMode: PdfProcessorTask.AnnotationProcessingMode): PdfProcessorTask
Changes all annotation of a certain type according to the passed in processing mode.
Link copied to clipboard
open fun changeFormsOfType(@NonNull formType: FormType, @NonNull processingMode: PdfProcessorTask.AnnotationProcessingMode): PdfProcessorTask
Changes all form annotations of a certain type according to the passed in processing mode.
Link copied to clipboard
Adjusts color of all strokes on the given page.
Link copied to clipboard
Removes all page labels in the document.
Link copied to clipboard
Creates a new empty processing task for the PdfProcessor.
Link copied to clipboard
Creates a new processing task for the PdfProcessor.
Link copied to clipboard
open fun performOcrOnPages(@NonNull pageIndexes: Set<Integer>, @NonNull ocrLanguage: OcrLanguage): PdfProcessorTask
Performs optical character recognition on the provided set of pages in the PDF document.
Link copied to clipboard
Removes passed pages from document.
Link copied to clipboard
Re-sizes the selected page to
pageSize
.Link copied to clipboard
open fun rotatePage(@IntRange(from = 0 ) pageIndex: Int, @IntRange(from = "-270", to = 270 ) rotation: Int): PdfProcessorTask
Rotates the selected page for passed degrees.
Link copied to clipboard
open fun setFormFieldNameMappings(@NonNull formFieldNameMappings: Map<String, String>): PdfProcessorTask
Renames form fields as described in a mapping.
Link copied to clipboard
open fun setFormMappingNameMappings(@NonNull formMappingNameMappings: Map<String, String>): PdfProcessorTask
Renames form mapping names as described in this mapping.
Link copied to clipboard
open fun setPageBox(@IntRange(from = 0 ) pageIndex: Int, @NonNull boxToChange: PdfBox, @NonNull rectF: RectF): PdfProcessorTask
Changes one of the page boxes for the passed page.
Link copied to clipboard
open fun setPageLabel(@IntRange(from = 0 ) pageIndex: Int, @Nullable label: String): PdfProcessorTask
Sets a label on the page.
Link copied to clipboard
Strip empty pages at the end of processing.
Link copied to clipboard
Sets metadata for the output document.