Exporting svg with foreignObject tag as an Image using PHP or Java
Is there a way to export an <svg>
tag containing <foreignObject>
as an Image using PHP or Java? I have tried https://github.com/sampula/SVG.toDataURL but it does not support foreignObject.
The only reason I want to be able to encode the foreignObject as to 开发者_开发知识库base64 is because that the foreignObject tag contains some HTML and an image inside.
Is there anyway to do this?
Old question but, yes I've successfully done it using phantomjs
精彩评论