Free Support Forum -

Retain Table Border Positions on Same Pages when Converting DOCX to PDF using C# .NET


When converting a DOCX with several tables to PDF, I noticed some top borders were moved to the previous page.


var doc = new Document(@"test.docx");
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;

I’ve attached my test files for your reference. In the PDF rendered by Aspose, the borders were fine on page 1-5 but start to have problems from page 6 onwards. This doesn’t happen when saving the DOCX to PDF using the Word ‘save as’ feature. Could you please help me take a look? (143.4 KB)
image.png (10.5 KB)



For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-22093. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.