We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Table Position is Incorrect after DOCX to PDF Conversion using .NET

I use Aspose.Words for DOCX to PDF Conversion using .NET. It contains some text on the first page and the table on the second. In the table’s Paragraph settings selected “Keep with next” checkbox so that the table started at the second page. When I try to convert the document to pdf using the code below the table moves to the end of the first page. Can you please help on this? The table must be on the second page.

var document = new Aspose.Words.Document("test.docx");
document.Save("test.pdf", Aspose.Words.SaveFormat.Pdf);

I’ve also attached a sample document (all text replaced by x due to confidentiality reasons) and a sample output pdf using Aspose.Words version 21.5. Document created in Microsoft Word 2013.
test.docx (21.1 KB)
test.pdf (26.4 KB)


Please use the latest version of Aspose.Words for .NET 21.10 to get the desired output. We have attached the output PDF with this post for your kind reference.
21.10.pdf (29.6 KB)

After upgrading Aspose.Words to version 21.10, the document was converted correctly. Thank you!


Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.