This sample shows how to optimize the size of an existing PDF document using save options.
A PDF file is internally a dump of PDF objects. You can use save options to specify which optimizations should be applied to PDF objects while saving a PDF file. All these optimizations don't affect the contents (text, images, bookmarks, and anything else) of the PDF file. These optimizations only affect how PDF objects are written and compressed in an output PDF file.
Turning on all save options shown in this sample may help achieve a great compression ratio of the output PDF file but may also slow down the saving of the document. It is especially true for large documents.
This sample shows only one approach to reduce the size of a PDF. Please check Compress PDF documents in C# and VB.NET sample code to see more approaches.