Replies: 1 comment 8 replies
-
Hey @NiklasBr 👋 Could you share the requests for both documents? My first supposition is that you’re using |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All tips on debugging this issue are very welcome!
Every so often a PDF generated with Gotenberg 8 will lack all fonts loaded with CSS
@font-face { font-family: ...
for the text. It will otherwise have rendered properly, as seen here:Output is reported as:
We tried implementing
waitForExpression
as'document.readyState === "complete"'
. We triedwindow.status
as mentioned in the docs, but it did not change anything (and it is apparently deprecated anyway).We also tried a dumb regular
waitDelay
but it also had no effect.Trying to reproduce it on the very same data/request a few minutes later will often lead to a fully working PDF with the fonts and everything 100% as expected:
Beta Was this translation helpful? Give feedback.
All reactions