You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a PDF that references external assets that then get inlined (for ex. because you rendered the HTML in another part of the application and just pass it to pdf_from_string), if the files fail to load, wkhtmltopdf will not fail by default, causing WickedPDF to generate a broken PDF. This is later hard to detect.
Using raise_on_all_errors: true with log_level: error is unreliable as wkhtmltopdf can output a warning that can be ignored to the STDERR as well (for ex. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' is treated as error)
Expected or desired behavior
Right now we can pass --load-error-handling abort --load-media-error-handling abort via extra. It would be great if these were options in WickedPDF config directly
The text was updated successfully, but these errors were encountered:
Issue description
When generating a PDF that references external assets that then get inlined (for ex. because you rendered the HTML in another part of the application and just pass it to
pdf_from_string
), if the files fail to load,wkhtmltopdf
will not fail by default, causing WickedPDF to generate a broken PDF. This is later hard to detect.Using
raise_on_all_errors: true
withlog_level: error
is unreliable aswkhtmltopdf
can output a warning that can be ignored to the STDERR as well (for ex.QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
is treated as error)Expected or desired behavior
Right now we can pass
--load-error-handling abort --load-media-error-handling abort
viaextra
. It would be great if these were options in WickedPDF config directlyThe text was updated successfully, but these errors were encountered: