Hello ,
I have used demo version of Aspose.Words and Aspose.PDF to convert a Word document into a PDF file.
The word document has 6 pages but the resulting pdf has only 3 pages, I am not sure what I missing here?
The following was the code used for conversion.
Document srcDoc = new Document(inputFile);
int index = inputFile.LastIndexOf(System.IO.Path.DirectorySeparatorChar);
srcDoc.SaveOptions.ExportImagesFolder = inputFile.Substring(0,index);
srcDoc.SaveOptions.ExportPrettyFormat = true;
MemoryStream xmlDoc = new MemoryStream();
srcDoc.Save(xmlDoc, SaveFormat.AsposePdf);
xmlDoc.Position = 0;
Pdf pdf = new Pdf();
pdf.BindXML(xmlDoc, null);
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.IsCoreFontUsed = false;
pdf.Save(outputFile);