I’n trying to use the new version 9.2. I noticed that the save method and saveoptions have changed. I have two questions regarding these changes.
1: Do you know how I can save to a stream and specify both the SaveFormat and the PdfSaveOptions?
2: Do you know if I can specify both the LegacyPdfSaveOptions and the PdfSaveOptions?
You can try specifying SaveFormat for PdfSaveOptions, please see the following code example:
Document doc = new Document(@"Test006\in.doc");
PdfSaveOptions opt = new PdfSaveOptions();
opt.SaveFormat = SaveFormat.Pdf;
MemoryStream stream = new MemoryStream();
doc.Save(stream, opt);
There is no way to specify both of these options together. You should note that we will exclude legacy method of PDF conversion in one of our future versions.
Best regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.