Re: [Inkscape-user] command line fitCanvasToDrawing (~suv)
Alternative without needing to press any buttons:
$ inkscape -f matplotlibOutput.pdf -l matplotlibOutput.svg $ inkscape -f matplotlibOutput.svg --verb=FitCanvasToDrawing \ --verb=FileSave \ --verb=FileQuit $ inkscape -f matplotlibOutput.svg -A prettyfigure.pdf $ rm matplotlibOutput.svg
hth, ~suv
That works! Thanks!! The resultant file is also only 30% as big as the original. Hm, maybe that's bad. Has it lost fonts? The GUI popups are funny, but better than fiddling with other methods, so far. (It would be nice if I could tell X11 to set my display for this process to a sort of /dev/nul of X...)
Cheers, Chris
On 16/12/11 17:46, cpblpublic+usenet@...155... wrote:
Alternative without needing to press any buttons:
$ inkscape -f matplotlibOutput.pdf -l matplotlibOutput.svg $ inkscape -f matplotlibOutput.svg --verb=FitCanvasToDrawing \ --verb=FileSave \ --verb=FileQuit $ inkscape -f matplotlibOutput.svg -A prettyfigure.pdf $ rm matplotlibOutput.svg
hth, ~suv
That works! Thanks!! The resultant file is also only 30% as big as the original. Hm, maybe that's bad. Has it lost fonts?
Can't tell without having access to an original PDF file. Inkscape's cairo-based PDF export always embeds (and subsets) the fonts in the PDF file. Maybe Inkscape did a font substitution (using a generic fallback font, or 'Sans') because it could not find fonts matching those referenced in the PDF file installed on your system (Inkscape 0.48 cannot make use of fonts embedded in PDF files, nor outline them on import).
Did you compare the visual appearance too, or only the file size?
The GUI popups are funny, but better than fiddling with other methods, so far. (It would be nice if I could tell X11 to set my display for this process to a sort of /dev/nul of X...)
-> http://en.wikipedia.org/wiki/Xvfb
~suv
participants (2)
-
unknown@example.com
-
~suv