Im using the newest version of the Aspose.Words DLL (126.96.36.199)
Im using the following code to convert my attached word document to PDF (size 108kb)
Dim fil() As Byte = File.ReadAllBytes(“C:\Test\MJ\DABLejerRyk1ny.docx”)
Dim ms As New MemoryStream(fil)
Dim wordDoc As New Aspose.Words.Document(ms)
Dim resultStream As New MemoryStream()
File.WriteAllBytes(“C:\Test\MJ” + Guid.NewGuid().ToString() + “.pdf”, resultStream.ToArray())
Result = 226kb
This means that my word doc goes from 108kb to 226kb when converted into PDF.
Why is that and how can I improve it?
I have tried using the following code:
Dim pdfOptions As New PdfSaveOptions()
pdfOptions.ImageCompression = PdfImageCompression.Jpeg
pdfOptions.JpegQuality = 10
The images inside the Word doc is GIF and furthermore im not interested in setting such a low image quality