I am using the evaluation version of Words and Pdf for an application I am developing.
I have a source file written in word, which loaded, merged with a data source, and then saved as a pdf file.
Aspose.Words.Document doc = new Aspose.Words.Document(filePath);
/\* replace content here \*/
doc.Save(savePath + ".xml", Aspose.Words.SaveFormat.AsposePdf);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(savePath + ".xml", null);
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.CompressionLevel = 9;
pdf.Save(savePath);
However, the completed file is 2.5mb. By comparison, if I open the word document, manually merge the contents and use the Adobe PDF Maker from within Microsoft Word, the file is 149kb.
I’ve uploaded a zip file with the two files in it for comparison:
http://65.110.95.184/ProposalTest.zip
Is there a solution for this? Because other than the file size, this application is perfect for my needs.
JK