Compresses each page of a provided PDF buffer.
The input PDF as a Buffer.
Compression quality (70-100 for most JPG images).
If true, attempts to re-write detected text.
If true, doesn't re-apply source text to the output PDF.
A Promise resolving to the compressed PDF as a Buffer.
Compresses each page of a provided PDF buffer.