PdfOptimizationOptions

PdfOptimizationOptions class

Contains the PDF optimization options to apply to the output PDF file. For details and code samples, see this page and its children.

public class PdfOptimizationOptions

Constructors

Name Description
PdfOptimizationOptions() Sets up default values of MaxResolution option to 300 and ImageQuality option to 100

Properties

Name Description
CompressImages { get; set; } Enables compressing images in the output PDF file.
ConvertToGrayScale { get; set; } Enables converting the output PDF file to a grayscale.
ImageQuality { get; set; } Sets the image quality in the output PDF file (in percent).
Lineriaze { get; set; } Enables optimization the output PDF file for viewing online with a web browser.
MaxResolution { get; set; } Sets the maximum resolution in the output PDF file.
OptimizeSpreadsheets { get; set; } Enables optimization of spreadsheets in the PDF files.
RemoveAnnotations { get; set; } Enables removing annotation from the output PDF file.
RemoveFormFields { get; set; } Enables removing form fields from a PDF file.
RemoveUnusedObjects { get; set; } Removes unused (orphaned) objects from a PDF file, which are placed in the PDF document, but are not referenced from resource dictionaries of any page and thus are not used at all. Activating this property (true) will decrease the output PDF document size. By default is disabled (false).
RemoveUnusedStreams { get; set; } Removes unused (orphaned) streams from a PDF file, which are still referenced from the resource dictionary of the page, but actually are never used in the page contents. By default is disabled (false), its enabling (true) will decrease the output PDF document size.
ResizeImages { get; set; } Enables setting the maximum resolution in the output PDF file.
SubsetFonts { get; set; } Subsets fonts in the output PDF file.

See Also