I am using Aspose.Words to create a PDF. With a specific Word document that goes wrong between pages 26 and 27. The document is created by mail merge software, each page having the same layout and a section break (next page) between each page of the document. In the PDF, part of page 27 is rendered on top of the output for page 26, as if the section break is not there.
I have just downloaded newest Aspose.Words.dll, it has the same problem.
My code is as follows:
string sPath = "FD3679.doc"; Aspose.Words.License wl = new Aspose.Words.License(); wl.SetLicense("Aspose.Total.lic"); Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions(); loadOptions.LoadFormat = Aspose.Words.LoadFormat.Auto; Aspose.Words.Document document = new Aspose.Words.Document(sPath, loadOptions); PdfSaveOptions saveOptions = new PdfSaveOptions(); saveOptions.Compliance = PdfCompliance.PdfA1a; string sIntermediateFile = sPath + ".A1a.pdf"; if (File.Exists(sIntermediateFile)) File.Delete(sIntermediateFile); document.Save(sIntermediateFile, saveOptions);
GertjaapFD3679.zip (111.2 KB)