Known Issues
External SVGs and ignore_resource_errors
When using ignore_resource_errors=true
, PDF creation will fail if the HTML document references SVG images (<img src="foo.svg">
) that include a doctype declaration (<!DOCTYPE svg PUBLIC …>
).
Workarounds
If possible, remove the doctype declaration from the SVG images. (This is generally recommended anyway – see this MDN article about SVGs for more details.)
If removing the doctype declaration isn’t possible, set ignore_resource_errors=false
when creating the PDF.