PDFImageProcessor

Used to preprocess pages of the PDF generation.

When you generate a PDF document from images, you may want to apply some preprocessing to each image before inserting them in the document (for instance resizing them, including a watermark, etc.) You can implement your own PDFImageProcessor and pass it when generating a PDF document.

Inheritors

Functions

Link copied to clipboard
abstract fun process(imageFile: File): File?

Process the image and return the updated image. The PDF processor will delete this temporary image afterwards (only if it's different from the input file).