PDF Viewer Font Rendering Issues

I have explored other threads related to this issue but to no avail. The PDF Viewer behaves in such a way that certain fonts, if not recognized, will render as rectangles instead of characters. I have tried installing the fonts on the gateway, and on the client viewing the PDF. I have tried restarting the gateway and restarting the client after installing the fonts. I have tried installing a similar font with a different typing/family onto the gateway and restarting. Nothing has worked so far.

Unfortunately, I must use the PDF Viewer to render PDFs I am loading from a database blob. Recreating the PDFs is not an option, leaving me with trying to force the gateway/Ignition server to recognize my fonts. After diving into the PDFs themselves I notice that most fonts are noted as ‘embedded’. I have seen other solutions post about embedding not being supported for report generation. Does this same rule apply to full PDFs being loaded from a blob on the database? What about PDF files being loaded directly from disk?

Related information

My solution was to just change the font on the reports to something else that did render. I hope that’s feasible for you.

I cannot rebuild the PDFs with different fonts because I have many PDFs. I would prefer to understand how the PDF Viewer functions so I can use the fonts I want, rather than changing the font.

Have you opened a support ticket? This will probably become a feature request, but only IA will be able to look under the hood at how this works.

I will open a ticket and report back. I have a feeling I’ll just end up frankensteining a Swing PDF viewer together.

Buy the web dev module (cheapest one), write the pdf to file, display the file in the web browser component that’s available with the web dev module. Probably cheaper to buy the web dev module than time wise to frankenstein your own swing pdf viewer. Upgrading to 8.3 also gets your the web browser component.

Unfortunately I never got a better way. I did just shell out and open the pdf from file in Adobe before as well in another project.

I’m already an hour deep in my own PDF viewer and almost done. At this point, I am more curious about the workings of the PDF Viewer Component than anything. I have also opened PDFs using the system default viewer, but the customer does not want this.

You should consider publishing it. Search the forum and you’ll see this problem has been around for a decade +.

2 Likes