Hello,
I have a problem converting a Word File to Pdf using Aspose.Words 6.3.0.0 and Aspose.Pdf 4.0.0.0.
The source Word document has three pages. After the conversion, my newly created Pdf document has four pages.
The Word document contains several images and lots of tables.
I need to get a Pdf document, having exactly the same number of pages than the source Word file.
The following code is used for the conversion process:
----------------------------
Aspose.Words.Document document = new Aspose.Words.Document(fullFileNameSource);
document.SaveOptions.PdfExportImagesFolder = temporaryFilesDirectory;
document.Save(cacheFileNameXml, Aspose.Words.SaveFormat.AsposePdf);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.IsTruetypeFontMapCached = true;
pdf.TruetypeFontMapPath = temporaryFilesDirectory;
pdf.BindXML(cacheFileNameXml, null);
pdf.Save(fullFileNameTarget);
----------------------------------------------------
Thank four your help,
Boris