Class Optimizer
The Optimizer class provides functionality for optimizing/shrinking output PDF files.
'pdftron.PDF.Optimizer' is an optional PDFNet Add-On utility class that can be used to optimize PDF documents by reducing the file size, removing redundant information, and compressing data streams using the latest in image compression technology. PDF Optimizer can compress and shrink PDF file size with the following operations:
- Remove duplicated fonts, images, ICC profiles, and any other data stream.
- Optionally convert high-quality or print-ready PDF files to small, efficient and web-ready PDF.
- Optionally down-sample large images to a given resolution.
- Optionally compress or recompress PDF images using JBIG2 and JPEG2000 compression formats.
- Compress uncompressed streams and remove unused PDF objects.
@note 'Optimizer' is available as a separately licensable add-on to PDFNet core license or for use via Cloud API (http://www.pdftron.com/pdfnet/cloud).
@note See 'pdftron.PDF.Flattener' for alternate approach to optimize PDFs for fast viewing on mobile devices and the Web.
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFTronDotNet.dll
Syntax
public class Optimizer
Methods
Optimize(PDFDoc)
Optimize the given document using the optimizers settings
Declaration
public static void Optimize(PDFDoc doc)
Parameters
Type | Name | Description |
---|---|---|
PDFDoc | doc | the document to optimize |
Optimize(PDFDoc, OptimizerSettings)
Optimize the given document using the optimizers settings
Declaration
public static void Optimize(PDFDoc doc, Optimizer.OptimizerSettings settings)
Parameters
Type | Name | Description |
---|---|---|
PDFDoc | doc | the document to optimize |
Optimizer.OptimizerSettings | settings | optimizer settings |