Free Support Forum - aspose.com

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

Hi,

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

Code:

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

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?

test1.zip (143.4 KB)
image.png (10.5 KB)

Thanks,

@ServerSide527,

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.