Ubuntu – how to extract a vector figure from pdf

13.10latexpdf

I have a question. I inserted my figure into my pdf file using latex in this way: I first created a vector figure using inkscape. Then I converted it to the pdf format and then included it to pdf using latex. Right now, using this generated PDF, I want to extract the previous svg figure. How can I extract it ?

BTW: I tried illustrator and also inkscape. However both required too many manual operations. I prefer the one which will take the pdf as input and output the svg figure. enter image description here

Best Answer

You could try this:

inkscape yourFile.pdf --export-plain-svg=yourFile.svg

It will take the first page of the PDF and all the default import options.

You could also try pdf2svg to export svg file from pdf.

pdf2svg <input.pdf> <output.svg> [<pdf page no. or "all" >]