Optional
filepathReadonly
inputQuality of the compression. For images, this is the JPEG quality. For PDFs, this affects image quality within the PDF.
Maximum width for image resizing. Ignored for PDFs.
Maximum height for image resizing. Ignored for PDFs.
For PDFs, whether to force compression even if source text is present.
For PDFs, whether to disable source text during compression.
A Promise that resolves when the compression is complete.
Cut PDF pages.
Compresses the file object, either as a PDF or an image.