Some test text!
To flatten a PDF using default settings.
PDFDoc doc = new PDFDoc(filename); Flattener fl = new Flattener(); fl.Process(doc, Flattener.e_fast);
Compress & optimize PDF files
Full code sample which shows how to use 'pdftron.PDF.Flattener' by simplifying page content (e.g. flattening complex graphics into images) while maintaining vector text.
PDF Flattener component (pdftron.PDF.Flattener) can be used to speed-up PDF rendering on mobile devices and on the Web.
PDF documents can frequently contain very complex page description (e.g. thousands of paths, different shadings, color spaces, blend modes, large images etc.) that may not be suitable for interactive viewing on mobile devices.
Flattener can be used to speed-up PDF rendering on mobile devices and on the Web by simplifying page content (e.g. flattening complex graphics into images) while maintaining vector text whenever possible.
A quick way to try Flattener is by using DocPub CLI (e.g. docpub -f pdf my.pdf).
Get the answers you need: Support
Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.
Select a platform to get started with your free trial.
Unlimited usage. No email address required.
Join our upcoming webinar to find out about built-in, full-functioning document capabilities directly in Salesforce.Save your seat