Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141527 | Dec 16,2018 10:12 AM UTC | Dec 17,2018 06:16 AM UTC | WinForms | 3 |
![]() |
Tags: PDF |
//Load an existing document. PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); //Initialize new instance of PdfCompressionOptions class. PdfCompressionOptions options = new PdfCompressionOptions(); //set the compress images based on the image quality. options.CompressImages = true; //set the image quality. options.ImageQuality = 50; //set the optimize font. options.OptimizeFont = true; //set the optimize page contents. options.OptimizePageContents = true; //set the remove metadata informations. options.RemoveMetadata = true; ldoc.CompressionOptions = options; //Save and close the document. ldoc.Save("Output.pdf"); ldoc.Close(true);
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.