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

Free Support Forum - groupdocs.com

Table in DOCX looks different in PDF documents

I created a document with Microsoft Word and I exported it as PDF. When I opened the DOCX document the table border looks ok, but when I open the PDF the border looks different, in gray color.

See the screenshot, in the left side, is the DOCX document and on the right side is the PDF document.

PDF: gd21-link-table-encode-pdf.pdf (182.2 KB)

Git project: https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java.git
Git branch: master
Git revision: f75a0b7
SO: Windows 10
Java version: Oracle JDK 1.8.0_201 and Redhat OpenJDK 11.0.10
table-looks-different-in-word-pdf.png (50.3 KB)
gd21-link-table-encode-docx.docx (23.7 KB)
gd21-link-table-encode-pdf.pdf (182 KB)


In case you’re rendering PDF and DOCX documents different rendering engines are used. When rendering PDF to HTML the table is a part of the background PNG image see background-image.png (2.4 KB) and when you scaling the page borders become blurry. When rendering DOCX to HTML the table borders is built with separate div blocks and as a result, the quality is better.
We have created an issue with ID VIEWERJAVA-2776 for the further investigation.

1 Like