Closed tyler-wright closed 1 week ago
If I had to guess, the issue may come from the Vips library (https://github.com/libvips/libvips).
This might be the offending line of code which can be tested to see if its the problem: https://github.com/docusealco/docuseal/blob/781ccc701d6ceefa30591b2547026678e067d0f2/lib/templates/process_document.rb#L31
Other than that I won't look into it further at the moment. I haven't got a ruby dev environment setup at the moment and I so loathe setting them up :sob:
@tyler-wright can you please share the original PDF with the issue?
That PDF has some other stuff I can't share, but here's one that has the issue all the same:
Here's it in Docuseal:
@tyler-wright thanks for sharing the PDF. it has been fixed in the Cloud - a new docker version with the fix will be released on Monday
I always come across the strangest bugs, I swear!
When using PDF's made with LibreOffice, and using bold, Open Sans font, it automatically changes the font colour to black for some reason.
It does not seem to do this using derivatives of Open Sans, such as 'Semibold', I am not sure why it just picks on Open Sans Bold - very obscure issue I know, but it points to something wrong with whatever code is generating the picture-based previews.
For instance, here's a PDF before it goes into docuseal:
Then here's the preview generated in docuseal:
It's a really quirky bug, not sure what causes it yet, but wanted to report it here in case I don't get the time to look for what causes it later.