X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.h;h=3ff607bda0b6350be3aa530d4ebf6c46e619efba;hp=6592f4b9d1257248c41b551a256e6c8449fdf405;hb=d9c0c3792133f87cd224dc22be428be8ddc016d8;hpb=1ccfbc6588b569fdf1ac195f8999231169b7957d diff --git a/src/document.h b/src/document.h index 6592f4b..3ff607b 100644 --- a/src/document.h +++ b/src/document.h @@ -27,7 +27,7 @@ namespace IPDF class Document { public: - Document(const std::string & filename = "", const std::string & font_filename = "DejaVuSansMono.ttf") : m_objects(), m_count(0), m_font_data(NULL), m_font() + Document(const std::string & filename = "", const std::string & font_filename = "fonts/DejaVuSansMono.ttf") : m_objects(), m_count(0), m_font_data(NULL), m_font() { Load(filename); if (font_filename != "") @@ -65,6 +65,7 @@ namespace IPDF /** Load an SVG text file and add to the document **/ void LoadSVG(const std::string & filename, const Rect & bounds = Rect(0,0,1,1)); + void ParseSVG(const std::string & svg, const Rect & bounds = Rect(0,0,1,1)); /** Parse an SVG node or SVG-group node, adding children to the document **/ void ParseSVGNode(pugi::xml_node & root, SVGMatrix & transform);