Menu

SVG to PDF

← TOC    ↑ Home    SVG PDF EPS SVG PNG JPEG ICO XPM

SVG to PDF

This page shows how to convert a plain SVG file x.svg to PDF.


Choice 1: Use gxhconvert

Procedure

gxhconvert -o=pdf x.svg

Options

Option Purpose
--svg-area=area Area to export, one from:
  • drawing
    Export just area containing drawing elements (default).
  • snap
    Enlarge the area to next snap grid points.
  • page
    Export the entire page.

Choice 2: Manual conversion

inkscape --batch-process --export-type=pdf --export-overwrite --export-filename=x.pdf --export-area-drawing x.svg

You can replace --export-area-drawing by --export-area-snap or --export-area-page to extend the export range to the snap grid area of the drawing or the entire page.

← TOC    ↑ Home    SVG PDF EPS SVG PNG JPEG ICO XPM