Skip to content

SVG to PDF converter

SVG to PDF in our image engine first rasterizes the SVG to pixels, then places that image on a PDF page sized from 96 dpi pixels.

  • Converted with Image engine · input deleted within 24 h
  • Free: 5 conversions a day · 5 MB each
  • Higher limits →

From real runs

What you get — and what changes

  • Vector paths Changed

    The 320×180 SVG became a raster image inside a 6,522 byte PDF, not editable PDF curves.

  • Page size Changed

    The default PDF page measured 240×135 points, matching 320×180 pixels converted at 96 dpi.

  • Inline CSS Kept

    The embedded style block colored teal panels and yellow circles correctly in the rasterized output.

  • External stylesheets Lost

    An SVG pointing to brand.css rendered black text instead of the red external CSS rule because only one file was uploaded.

  • Font families Changed

    A deliberately missing font family rendered with a server fallback, so exact text metrics cannot be assumed.

  • viewBox-only sizing Kept

    A 200×100 viewBox-only SVG with no width or height still produced a 200×100 raster in our control run.

Sample conversions

Styled logo SVG

Input
640 byte SVG, 320×180, with paths, inline CSS classes, transparency, and a missing named font.
Output
6,522 byte one-page PDF at 240×135 points. Colors matched the inline CSS, while text used a fallback font.

External CSS experiment

Input
275 byte SVG with an xml-stylesheet reference to brand.css and no inline fill for the text.
Output
Control PNG showed black text and zero red pixels, confirming the uploaded SVG did not bring the external stylesheet along.

A real SVG → PDF run

We converted our SVG sample (389 B) with Image engine on 2026-10-20. It took 70 ms and produced a 5 KB PDF file, 14× larger than the input. The engine raised 1 warning, listed below.

Input · sample.svg · 389 B

SVG viewBox 0 0 320 200, 0 paths

viewBox
0 0 320 200
Paths
0

Output · sample.pdf · 5 KB

PDF 1.4, 1 page, no text layer, 1 image object

Version
1.4
Pages
1
Images
1
Text layer
no
  • Image metadata stripped from output.

Options and when to change them

width
Set width when the PDF should contain a specific raster export size rather than the SVG's intrinsic size.
height
Set with width for exact output pixels; leaving one side blank preserves the rendered ratio.
dpi
Change DPI when physical SVG units should map to a different PDF point size.
background
Choose a background color before PDF output because transparent SVG areas are flattened for the PDF image.

Do it yourself

CairoSVG

bash
cairosvg in.svg -o out.pdf --dpi 96

Direct CairoSVG PDF can retain more vector structure than this image-ir path, which rasterizes before Pillow writes PDF.

SVG to PDF by API or MCP

The HTTP API and the MCP server run the exact engine this page uses (Image engine); the response carries the same warnings the web converter shows. Check support first with GET /api/v1/pairs?from=svg&to=pdf.

curl
curl -X POST https://filetypeconverters.com/api/v1/convert \
  -H "Authorization: Bearer $FTC_API_KEY" \
  -F "file=@input.svg" -F "from=svg" -F "to=pdf" \
  -F 'options={"dpi":96}' \
  --output output.pdf

Options this engine accepts for SVG → PDF

KeyApplies toTypeDefault
dpiReading SVGnumber96
widthWriting PDFnumber0
heightWriting PDFnumber0
fitWriting PDFcontain · cover · fillcontain
qualityWriting PDFnumber90
backgroundWriting PDFstring#ffffff
stripMetadataWriting PDFbooleantrue
API reference

When this is the wrong conversion

  • Use a design app export when the PDF must keep editable vector paths and real text objects.
  • Use /convert/svg-to-png when the destination only needs a transparent bitmap instead of a PDF wrapper.
  • Keep SVG when CSS-driven theming or resolution-independent icons are the actual delivery requirement.

SVG to PDF questions

Does SVG to PDF keep vectors editable?

Not in this route. Our image engine renders the SVG to a bitmap first, so the PDF contains page imagery rather than editable path objects.

Why did my SVG font change in the PDF?

CairoSVG can only render with fonts available to the sidecar. Convert text to paths before upload when exact brand typography matters.

Will CSS files next to my SVG be used?

No in the tested API flow. The upload sends one SVG file, and the external brand.css rule was not applied.