When I execute the following code:
Document doc;
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Total.lic");
doc = new Document(WordDocFilename);
doc.Save(PDFfilename, SaveFormat.Pdf);
I version 6.5.0.0 I get the following exception:
Error doc.Save(C:\PRINT_SYSTEMS\ActivePDFPrintersStage\0577222-01-2180171-01-00-00001.doc.pdf) as PDF from WordDoc(C:\PRINT_SYSTEMS\ActivePDFPrintersStage\0577222-01-2180171-01-00-00001.doc)
Exception:
System.InvalidOperationException: Field Separator nodes should be skipped when inserting into the layout.
at .㿇.㿠()
at .㿇.㿖()
at .
Ӟ.㠊(Document , ӟ ⎉)
at Aspose.Words.Document.UpdatePageLayout()
at Aspose.Words.Document.get_
Ӟ()
at Aspose.Words.Document.
ԃ(Stream Ӽ, String Ӻ, SaveFormat Ԅ)
at Aspose.Words.Document.Save(String fileName, SaveFormat fileFormat)
using version 8.0.0.0 I get the following exception:
at ➤.䃄.get_䃅()
at ➤.䁞.䁦()
at ➤.䁞.䁖()
at ➤.䁍.䁖()
at .Ӟ.㴦(Document ൦, ӟ ╸)
at Aspose.Words.Document.UpdatePageLayout()
at Aspose.Words.Document.get_Ӟ()
at Aspose.Words.Document.get_PageCount()
at Aspose.Words.Document.ԅ(Stream Ӿ, String Ӽ, SaveFormat Ԇ)
at Aspose.Words.Document.Save(String fileName, SaveFormat fileFormat)
I attached the word doc used to produce this error.
thanks
Graham