Free Support Forum - aspose.com

Large file size when saving RTF to PDF

Hello,

We are trying out Aspose.Words with a trial license to see if your software fits with our current needs. We are currently testing the RTF to PDF save functionality. We are trying to figure out if there is a way to reduce the size of the final PDF document.

I searched through your Aspose.Words support forums and I saw that PdfSaveOptions was referenced multiple times but when we tried to access this function we weren't able to find it in the 16.10.0.0 version of Aspose.Words. Was this functionality removed? If so, is there another way to manipulate the size of the PDF document using Aspose.Words?

Hi Brandon,


Thanks for your inquiry. The PdfSaveOptions class exists in Aspose.Words APIs. Please use latest version of Aspose.Words for .NET 17.1.0. The size of Pdf documents can be reduced by using the following methods:

  • You can save images to PDF using JPEG encoding to decrease file size. Please see PdfSaveOptions.ImageCompression and PdfSaveOptions.JpegQuality properties.
  • By subsetting fonts which are embedded into the PDF documents. Please see PdfSaveOptions.FontEmbeddingMode property.
  • Compression of text - see PdfSaveOptions.TextCompression property (Usually the decrease in 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 - see PdfSaveOptions.UseCoreFonts property.