A strange problem today is that Aspose’s Word to pdf. Successful PDF differs greatly from the original file. I will provide the documents that need to be transferred, and I will trouble you for help.
Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:
- Your input Word document.
- Please attach the output PDF file that shows the undesired behavior.
- Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.
OK, I will provide you with the required PDF and the successful PDF.
Thanks for sharing the detail. Please use the latest version of Aspose.Words for .NET 18.9 with following code example to get the desired output. Hope this helps you.
Document doc = new Document(MyDir + "生成PDF之前.doc");
PdfSaveOptions optinos = new PdfSaveOptions();
optinos.ImageCompression = PdfImageCompression.Jpeg;
doc.Save(MyDir + "18.9.pdf", optinos);
Thanks for your inquiry. Please use the following PdfSaveOptions to reduce the PDF file size. Hope this helps you.
Document doc = new Document(MyDir + "生成PDF之前.doc");
PdfSaveOptions opt = new PdfSaveOptions();
opt.DownsampleOptions.DownsampleImages = true;
opt.DownsampleOptions.Resolution = 75;
opt.DownsampleOptions.ResolutionThreshold = 75;
opt.ImageCompression = PdfImageCompression.Jpeg;
doc.Save(MyDir + "18.9.pdf", opt);