jung-kurt / gofpdf

A PDF document generator with high level support for text, drawing and images
http://godoc.org/github.com/jung-kurt/gofpdf
MIT License
4.29k stars 772 forks source link

Cannot parse SVG with <g> tags #311

Open nicholaspuglia opened 4 years ago

nicholaspuglia commented 4 years ago

When parsing an svg before writing it to a pdf using SVGBasicParse(), if the svg contains tags then it does not appear on the pdf. My current workaround is to remove the tags from the svg manually however, it would be convenient to remove this extra step.

jung-kurt commented 4 years ago

@nicholaspuglia -- can you provide a small example of an SVG file before and after the tags are removed?

nicholaspuglia commented 4 years ago

Before the tag is removed:

`<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

` **After tag is removed:** ` `