Package svg provides very limited, experimental facilities for rendering SVG images to PDFs. In addition to the obvious constraints (e.g., lack of animation), this package does not implement several important SVG features. Here's a rundown of some of them:
- There is limited support for CSS properties.
- Support for SVG text elements is unplanned.
- Elliptical Arc Curve (
A
and a
) path commands are not supported, and the present solution for displaying ellipse elements needs substantial improvement.
- Mask elements and transparency/opacity-related attributes are not supported.
These limitations preclude the use of this package for certain applications, but it can work with a surprising number of basic SVG images. Running an SVG through an SVG optimizer, such as SVGO(MG), and making simple manual adjustments to the SVG's source text can often fix rendering issues.