Function convert_doc

Source
pub(crate) fn convert_doc(
    svg_doc: &Document<'_>,
    opt: &Options<'_>,
) -> Result<Tree, Error>
Expand description

Converts an input Document into a Tree.

§Errors

  • If Document doesn’t have an SVG node - returns an empty tree.
  • If Document doesn’t have a valid size - returns Error::InvalidSize.