PDF2SVG(1)

πŸ’– PDF2SVG β€” the manual page, but make it cute πŸ’–

okay bestie, gather round, because this tiny little legend of a tool is about to become your new obsession. it's called pdf2svg, it lives in the General Commands Manual section (section 1, iykyk), and it does exactly one thing and does it flawlessly: it turns PDFs into SVGs. that's it. that's the whole vibe. πŸ¦‹


✨ NAME ✨

pdf2svg β€” PDF to SVG convertor πŸŽ€


🌸 SYNOPSIS 🌸

pdf2svg pdffile svgfile [page number]

πŸ’… DESCRIPTION πŸ’…

so pdf2svg is a tiny command-line utility that uses Cairo and Poppler under the hood to convert PDF documents into SVG files. literally tiny. it's giving "small but mighty." πŸ‘‘

and here's the fun part: a multi-page PDF can be split up into one SVG per page by passing a file naming specification. so you're not stuck with one giant blob of a file β€” you can have a whole lil collection. slay. 🌈

⚠️ heads up bestie: the program does not follow the usual GNU command line syntax. do not come in here expecting --whatever, because that is not the energy we're on.

the first argument is the source PDF file. the second argument is the filename of the output SVG file β€” or a specification, if you're feeling fancy (details below, keep reading, don't skip πŸ’–).


🌟 OPTIONS 🌟

the third parameter is optional, and it's your page selector. if you omit it, it just defaults to the first page of the PDF you passed in. no thoughts, just page one. πŸ™ˆ

if you do pass it, it has to be a valid page label β€” typically something like "iii" or "3". that's it, that's the requirement.

🧚 all

this special selector makes the program iterate over every single page in the PDF. the whole thing. all of them. main character energy, no pages left behind. πŸ”₯

but β€” and this is the important bit β€” because it cannot save multiple pages into one single SVG, the second parameter is expected to contain a sensible file specification:

pdf2svg document.pdf output-page%d.svg all

and yes, the usual format modificators work here too, because of course they do. so output-page%02d.svg will give you output-page00.svg, output-page01.svg, etc. obsessed. πŸ˜­πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

pdf2svg was written by David Barton <davebarton@cityinthesky.co.uk> and Matthew Flaschen <matthew.flaschen@gatech.edu>. absolute icons, we stan. 🫢

this manual page was written by Philipp Kern <pkern@debian.org>, for the Debian project (but may be used by others β€” sharing is caring, bestie). πŸŽ€


and that's the whole page, fr fr. this lil doc came to you from July 16, 2008 β€” a vintage queen, timeless, still eating. go convert something gorgeous, bestie. mwah. πŸ’…βœ¨πŸŒΈπŸ¦‹πŸ’–