Please look at why the pagination has changed when using ASPOSE.WORD to save origfile.dot to resultfile.pdf. When I save the file to resultfile.doc, resultfile.docx, resultfile.rtf, the formatting is correct.
I’m using following code to convert file format:
static void Main(string[] args)
{
// load license
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic");
// load the template document
Document templateDoc = new Document("c:\\PDF_Need_Fix\\origfile.dot");
Aspose.Words.DocumentBuilder docBuilder = new Aspose.Words.DocumentBuilder(templateDoc);
// change format of file
docBuilder.Document.Save("C:\\PDF_Need_Fix\\resultfile.rtf");
docBuilder.Document.Save("C:\\PDF_Need_Fix\\resultfile.doc");
docBuilder.Document.Save("C:\\PDF_Need_Fix\\resultfile.docx");
docBuilder.Document.Save("C:\\PDF_Need_Fix\\resultfile.pdf");
}
Janet Everson - Sr. Software Developer - Sedgwick CMS