PDF not coming back from database the same way it printed?

Weird issue I have not run into before. Using Ignition 8.1.25, but it is using the legacy reporting component.

I have a screen where a operator can view and save a report to the database. I do so via .getBytesPDF() from the component, save that to a blob column. It then prints directly from the screen to a saved PDF (this one looks right).

Later on another screen I can retrieve the blob column to a PDF Viewer and it looks 90% the same - except the some text is now overlapping when it did not originally and did not on first print.

Right now I am likely going to tell them its a result of the old legacy reporting component and it is next on the list of things to fix for this project, but I am curious as well - has anyone seen this behavior in the newer reporting component, and also - any idea how it could happen at all? I assume even the legacy component was a WYSIWYG type PDF viewer.

I've seen overlap weirdness in various cases where alternate fonts are used. Probably related.

1 Like

Does it still come back different if you use the returned bytes from system.report.executeReport() when saving in the DB?

It's the legacy component so I don't have that option unfortunately. Next project is to convert them to the new report component with that capabilities.