Function svg2pdf::convert_str
source · pub fn convert_str(src: &str, options: Options) -> Result<Vec<u8>, Error>
Expand description
Convert an SVG source string to a standalone PDF buffer.
Does not load any fonts and consequently cannot convert text
elements. To
convert text, you should convert your source string to a
usvg
tree manually,
convert text with usvg and then use
convert_tree
.
Returns an error if the SVG string is malformed.