For our customer application, we need to convert an Word ML (XML) document to PDF.
We do dis using your Aspose Words component (V10.8.0.0) and in most cases it works great.
Unless, when we use a table with a cell spanned over 2 columns (like colspan in html), then the conversion goes wrong.
In attachment you find the source file (.doc extension) and also the output file in PDF/A.
On page 3 of the document everything goes wrong... The table gets extended and you cannot read the output anymore because it falls of the page...
The source code we use to convert is:
var stream = new MemoryStream();
var doc = new Document(fileToconvert.FullName);
foreach (Section section in doc.Sections)
// Set PaperSize to A4
section.PageSetup.PaperSize = PaperSize.A4;
//Set PDF Options
var pdfoptions = new Words.Saving.PdfSaveOptions()
Compliance = PdfCompliance.PdfA1b,
SaveFormat = SaveFormat.Pdf,
TextCompression = PdfTextCompression.None
//Save the Pdf
// Rewind the stream
stream.Position = 0;
Can you tell us what's wrong with it ?