{"id":9055,"date":"2019-01-04T12:46:14","date_gmt":"2019-01-04T12:46:14","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=9055"},"modified":"2019-01-04T12:46:48","modified_gmt":"2019-01-04T12:46:48","slug":"pdf2svg-convert-pdf-to-svg","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=9055","title":{"rendered":"PDF2SVG: Convert PDF to SVG"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ pdf2svg\r\n$ pdftocairo -svg\r\n$ inkscape -l out.svg in.pdf\r\n$ inkscape \\\r\n  --without-gui \\\r\n  --file=input.pdf \\\r\n  --export-plain-svg=output.svg \r\n$ pstoedit -f plot-svg -dt -ssp eqn.ps eqn.svg\r\n<\/pre>\n<h3>Fonts don&#8217;t match<\/h3>\n<p>An option seems to be to first convert the fonts to path on the pdf side with:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ gs -o target.pdf -dNoOutputFonts -sDEVICE=pdfwrite source.pdf\r\n<\/pre>\n<h3>Q&#038;A<\/h3>\n<p><a href=\"http:\/\/www.inkscapeforum.com\/viewtopic.php?t=30252\">Convert PDF to SVG by command line<\/a><br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/4120567\/convert-pdf-to-svg\">convert pdf to svg<\/a><br \/>\n<a href=\"https:\/\/superuser.com\/questions\/1023524\/pdf-to-svg-conversion-with-grouping-and-proper-text-conversion\">PDF to SVG conversion with grouping and proper text conversion<\/a><br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/10288065\/convert-pdf-to-clean-svg\">Convert PDF to clean SVG?<\/a><br \/>\n<a href=\"https:\/\/wiki.ubuntuusers.de\/pdf2svg\/\">pdf2svg<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ pdf2svg $ pdftocairo -svg $ inkscape -l out.svg in.pdf $ inkscape \\ &#8211;without-gui \\ &#8211;file=input.pdf \\ &#8211;export-plain-svg=output.svg $ pstoedit -f plot-svg -dt -ssp eqn.ps eqn.svg Fonts don&#8217;t match An option seems to be to first convert the fonts to path on the pdf side with: $ gs -o target.pdf -dNoOutputFonts -sDEVICE=pdfwrite source.pdf Q&#038;A Convert [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9055","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9055"}],"version-history":[{"count":2,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9055\/revisions"}],"predecessor-version":[{"id":9059,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9055\/revisions\/9059"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}