pdf -> svg : command line

Post questions on how to use or achieve an effect in Inkscape.
natus
Posts: 1
Joined: Tue Feb 24, 2015 11:24 pm

pdf -> svg : command line

Postby natus » Tue Feb 24, 2015 11:32 pm

Hello,

I use inkscape to transform from pdf to svg. I would like to be able to :
- choose the page I transform to svg
- choose precision of approximating gradient meshes
- replace or not pdf fonts by closest-name installed fonts

The feature I described are provided with the gui (import a pdf).Is there a way to get this feature to command lines argument ?

Thanks by advance,

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: pdf -> svg : command line

Postby ragstian » Wed Feb 25, 2015 10:42 am

Hi.

To specify the <dpi for the rasterization of filtered effects and images use;

    -d DPI , --export-dpi= DPI
    The resolution used for PNG export. It is also used for fallback rasterization of filtered objects when exporting to PS , EPS , or PDF
    (unless you specify --export-ignore-filters to suppress rasterization). The default is 90 dpi, which corresponds to 1 SVG user unit
    (px, also called "user unit") exporting to 1 bitmap pixel. This value overrides the DPI hint if used with --export-use-hints.

To extract individual pages from a pdf document you have to use an external (to inkscape) utility, do a Google search to find one you like.
Here are one alternative .pdftk

To replace missing fonts have a look here: PDF Font Replaement

You can pipe the commands together on one single command line.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar


Return to “Help with using Inkscape”