Another alternative is using pdf2svg
, as indicated here: Launchpad Bug Report.
In Ubuntu, you can install it as sudo apt-get install pdf2svg
My overarching goal in reading this post was to be able to edit the raw paths of the PDF in Inkscape, so this accomplishes my goal quite well.
EDIT:
As a succinct command, you can add the following command:
pdf-text-to-path() { name=${1%.[Pp][Dd][Ff]}; pdf2svg $1 $name.raw.svg; inkscape --export-pdf=$name.raw.pdf $name.raw.svg; }
The command pdf-text-to-path $name.pdf
will generate $name.raw.svg
and then use inkscape
to convert the SVG to PDF in $name.raw.pdf
. (Note: You will need Inkscape, which is admittedly bulky. convert
seems to rasterize the image.)