Hello
Thanks for your request. Size of PDF documents can be reduced only by doing the following:
Decreasing size of images inside PDF (this can be done only be decreasing quality).
Subsetting fonts, which are embedded into the PDF documents. (Aspose.Words does this by default).
Compression of text (Usually decreasing of size is not very big)
Using “Core fonts”. “Core fonts” are 14 fonts, which are supported by PDF viewers by default. We can optionally get rid embedding of these fonts into PDF. But, unfortunately, this feature is not supported by Aspose.Words at the moment. I will let you know once it is available.
Difference in side of PDF document generated by Aspose.Words and MS Word can be explained by different way of subsetting fonts. For example, if you try to convert a larger document to PDF the size different will be unnoticeable.
As a variant, you can try using TextCompression and JpegQuality options. But you should note if you change JpegQuality you can reduce the quality of images in the document. See the following code:
// Open source document.
Document doc = new Document("in.doc");
// Set PdfSaveOptions
PdfSaveOptions pdfOptions = new PdfSaveOptions();
pdfOptions.TextCompression = PdfTextCompression.Flate;
pdfOptions.JpegQuality = 60;
doc.Save("out.pdf", pdfOptions);
Hello
Thanks for your request. It seems you are using an old version of Aspose.Words. The latest version of Aspose.Words is 10.1.0; you can download this version from here: https://releases.aspose.com/words/net
Best regards,
PdfOptions was replaced with PdfSaveOptions few releases ago. Just replacing files in the bin folder is not enough, you should remove old reference from you project and add new reference to new dll.
Best regards,