We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Size problem when converting docx to pdf

Hi
I’m using aspose.words for .net v18.10.
when i convert the attached .docx to pdf, the pdf size is about 13 MB, while when I export to pdf from word, the resulting pdf size is about 5 MB …
could you tell me why there is this difference ?
and if there are options in aspose to optimize the resulting pdf size when saving to pdf ?
thanks in advance.

@tparassin

Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

i tried to attach the zipped docx, but after the upload i see nothing in the topic !?
the zip size is about 18 MB.
is there a maximum size for upload ?

@tparassin

Thanks for your inquiry. Please upload the ZIP file to Dropbox or any other file hosting service and share the download link here for testing. Thanks for your cooperation.

here is :
http://dl.free.fr/jyodD6oLG

@tparassin

Thanks for sharing the document. We suggest you please use the properties of PdfSaveOptions class as shown below to reduce the size of PDF. Hope this helps you.

Document doc = new Document(MyDir + @"test size.docx");
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.ImageCompression = PdfImageCompression.Jpeg;
pdfSaveOptions.DownsampleOptions.Resolution = 100;
doc.Save(MyDir + "19.1.pdf", pdfSaveOptions);

very efficient, thank you.

@tparassin

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.