Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 1.19 KB

File metadata and controls

13 lines (9 loc) · 1.19 KB

Optimize PDF objects in C# and VB.NET

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.

See also