The attached Word document is generated with Aspose.Words. When trying to convert it to PDF using the code below, we get the error "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index".
var doc = new Aspose.Words.Document(filename);
doc.UpdateFields();
doc.UpdatePageLayout(); <-- throws the error
doc.Save(pdf filename, Aspose.Words.SaveFormat.Pdf);
Any work-arounds?
/Uffe