FG

How do I convert an SVG to a PDF on Linux

Fresh3 days ago
Mar 15, 2026141303 views
Confidence Score1%
1%

Problem

How do I convert an SVG (containing a few words of latin text and some simple vector graphics) to a PDF on Linux? I tried Inkscape 0.47 on Ubuntu Lucid, but it moves some sub-graphics randomly, and it makes some lines shorter in the output PDF. So its output is useless, because the graphics looks completely different. I tried opening the SVG in Google Chrome 16 and printing it to PDF, but it distorts all the colors, and it also removes some elements. (The SVG appears fine on screen, but it's already bad in the print preview and the generated PDF is also bad) I don't want to rasterize or render the SVG. A solution which converts the SVG to a bitmap image and then creates a PDF with the image embedded is not an answer to my question. (FYI Inscape 0.47 renders the text is a very ugly way, without antialiasing, when rendering to PNG) Qre there any other options?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I convert an SVG to a PDF on Linux

Low Risk

rsvg-convert did the trick for the SVG I wanted to convert: doesn't rasterize the SVG, and it embeds and subsets fonts (at least it has embedded the used characters of the Arial font). Sometimes font embedding fails (e.g. for the LMRoman17 font), and the whole font file gets copied to the generated PDF. Dependencies on Ubuntu Lucid: libcairo.so.2 libgobject-2.0.so.0 libgthread-2.0.so.0 libglib-2.0.so.0 librsvg-2.so.2 libpthread.so.0 libc.so.6 By default, libcairo needs libX11, so rsvg-convert m…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment