We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDF Document

Thread ID:

Created:

Updated:

Platform:

Replies:

141527 Dec 16,2018 10:12 AM UTC Dec 17,2018 06:16 AM UTC WinForms 3
loading
Tags: PDF
Darrin Edwards
Asked On December 16, 2018 10:12 AM UTC

Hi guys, hoping for a little direction here ...
[code]
//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);
[end code]
looking at the above code, how can I implement the SaveProgress event handler ? (ie like would be implemented forPdfDocument().

MTIA

DWE

Karthikeyan Chandrasekar [Syncfusion]
Replied On December 17, 2018 06:02 AM UTC

Hi Darrin, 
Thank you for your interest in Syncfusion products. 
You can get the sample for using SaveProgress in PdfDocument from the below link. 

Regards, 
Karthikeyan  


Darrin Edwards
Replied On December 17, 2018 06:07 AM UTC

Hi KarthikeyanC 
I am aware of that example, but my question was  how do I integrate that with the sample code I provided - ie how can I use the SaveProgress event with a PDFLoadedDocument? Or is that not possible ?


Karthikeyan Chandrasekar [Syncfusion]
Replied On December 17, 2018 06:16 AM UTC

Hi Darrin, 
Yes, at present we do support for SaveProgress event only in PdfDocument i.e., newly created document and don’t have support in PdfLoadedDocument i.e., existing document. We have logged a feature request and will implement this feature in any of our upcoming releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. We request you to visit our website periodically for feature related updates.  

Regards, 
Karthikeyan  


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;