Rendering Document as PDF shows empty table borders

When creating a document with Aspose.Words and inserting a table into it, which has no borders set (even calling table.ClearBorders() to ensure it), when saving the document as PDF, the resulting PDF shows some kind of thin gridlines (see attached image).

This example PDF was created using Aspose.Words and when opening it with Adobe Reader, it shows the erroneous ‘gridlines’:

Simple_striped_table.pdf (1.6 KB)

I played around a lot with the PdfSaveOptions, but could not find any configuration that avoids these glitches.

Please note: When exporting the document to MS Word and then saving the file as PDF (using MS Word), the table is rendered just fine, not showing any wrong gridlines. The PDF export in Word must do something different than the one from Aspose.Words.

Thank you and best regards,
Stefanie

@stefanie.huber I have checked your document in several viewer programs, including Adobe Reader, and unfortunately I can’t reproduce this problem.

Hi Vyacheslav,
thank you very much for your quick response. I use Adobe Reader version 2025.001.20531 (the latest version I guess). E.g. when using zoom level 66.7%, the gridlines are visible very well (see screenshot). There are no gridlines shown when opening the PDF file created by Word itself.

More than that, we use pdfjs for rendering the PDF in the browser and this library resembles the behaviour of Adobe Reader, and unfortunately the gridlines are visible quite prominently.

Can you maybe test it using the same version of Adobe Reader or maybe using a test version of pdfjs (PDF.js viewer)?

Thank you very much,
best regards Stefanie

@stefanie.huber I double checked your document with Adobe Reader (2025.001.20531 and 2025.001.20529) under Windows/MacOS at different scales. It was also checked in several browsers and WPS viewer. Unfortunately, I only see the problem in the pdfjs viewer you provided.

Do you maybe have any clue why this happens? I am wondering why you cannot see it in Adobe Reader, since the phenomen is quite obvious on my system. What is even more strange, as I mentioned, when storing the Apose Words created Document as Word-file, and then exporting it to the PDF in word, everything is fine (even in PDF.js viewer). I first thought it may be a problem with PDF.js, but since the very same document is rendered fine when exported via Word, I think we cannot blame them. Maybe any hint from your side? There must be a difference in the PDF generation process of Aspose Word and MS Word, I guess?

Any help is really appreciated :slight_smile:
Thank you and best regards, Steffi

@stefanie.huber I will discuss it with the developer and get back to you.

Thank you Vyacheslav!

@stefanie.huber The problem is not observed on multiple PCs, and it seems to be a specific renderer and environment issue. As a workaround, you may not remove all borders, but leave the inner ones, and match the border color to the color of the adjacent cell.