How Does Client-Side Optimization & Repair Work?
Rendering pages and embedding JPEG images in a new PDF
The tool uses PDF.js to render each page to a canvas, then embeds a JPEG image of that page into a newly generated PDF. This is image-based compression, not PDF structure repair or lossless optimization.
- Page rendering: Converts each rendered page into a JPEG image using the selected quality setting.
- Resolution control: Adjusts the rendered pixel dimensions, subject to a browser memory safety limit.
- Grayscale option: Converts rendered page pixels to grayscale before JPEG encoding.