danfickle / danfickle/openhtmltopdf

SVG plugin - unable to create element feDropShadow

Open
#950 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

Thank you for all the great work on OpenHTMLtoPDF!

I am trying to render an SVG generated by a HighCharts export server and am getting this error:

org.w3c.dom.DOMException: The current document is unable to create an element of the requested type (namespace: http://www.w3.org/2000/svg, name: feDropShadow).
at org.apache.batik.dom.AbstractNode.createDOMException(AbstractNode.java:408)
at org.apache.batik.anim.dom.SVGDOMImplementation.createElementNS(SVGDOMImplementation.java:203)
at org.apache.batik.anim.dom.SVGOMDocument.createElementNS(SVGOMDocument.java:373)
at org.apache.batik.dom.AbstractDocument.importNode(AbstractDocument.java:348)
at org.apache.batik.dom.AbstractDocument.importNode(AbstractDocument.java:326)
at org.apache.batik.dom.AbstractDocument.importNode(AbstractDocument.java:426)
at org.apache.batik.dom.AbstractDocument.importNode(AbstractDocument.java:326)
at org.apache.batik.dom.AbstractDocument.importNode(AbstractDocument.java:426)
at org.apache.batik.dom.AbstractDocument.importNode(AbstractDocument.java:326)
at com.openhtmltopdf.svgsupport.BatikSVGImage.drawSVG(BatikSVGImage.java:218)

Has anyone else experienced this?

I don't know enough about Batik but perhaps an upgrade to version Batik 1.17 will solve the issue?

I'm attaching the SVG file here. Any help will be greatly appreciated!

![chart](https://github.com/danfickle/openhtmltopdf/assets/4679208/3623af52-19b2-4c3d-93ad-217a9a566651)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.