How to convert any document to SVG format using C++?