pub(crate) fn convert_doc(
svg_doc: &Document<'_>,
opt: &Options<'_>,
) -> Result<Tree, Error>Expand description
Converts an input Document into a Tree.
§Errors
- If
Documentdoesn’t have an SVG node - returns an empty tree. - If
Documentdoesn’t have a valid size - returnsError::InvalidSize.