pdf2baresvg(1)
β¨ pdf2baresvg β the manual, but make it make sense β¨
okay bestie, sit down, hydrate, because we're about to talk about pdf2baresvg, aka the little glow-up machine that takes your PDF and hands you back a bare SVG. π
πΈ NAME πΈ
pdf2baresvg β PDF to bare SVG convertor. that's it, that's the whole job. no cap.
π SYNOPSIS π
pdf2baresvg pdffile svgfile [page number]
three little words and a maybe, and it's giving efficiency. π
π DESCRIPTION π
so here's the tea. pdf2baresvg launches the command pdf2svg and then simplifies whatever comes out of it. that's the entire plot, but it's a good plot. π
pdf2svg is a tiny command-line utility that uses Cairo and Poppler to convert PDF documents into SVG files. its output is a standalone SVG file which comes with an XML header. very demure, very mindful.
but here's the thing, bestie: sometimes that XML header is just not useful. for instance when you wanna embed the SVG output as an element in some HTML page. the header's just standing there in the doorway like π. and that's literally why pdf2baresvg exists β to strip the vibes down to the bare essentials.
β¨ OPTIONS β¨
[some page label]β the third parameter, and yes she's optional πββοΈ. she serves as a page selector. if you omit her, she defaults to the first page of the passed PDF. if you do pass her, she must be a valid page label β typically a value such as"iii"or"3". iykyk, roman numerals count.allβ this special selector causes the program to iterate over all pages in the PDF. because it cannot save multiple pages into one single SVG, the second parameter is expected to contain a sensible file specification:
pdf2baresvg document.pdf output-page%d.svg all
β οΈ heads up bestie: this selector is not encouraged for use with pdf2baresvg, since the XML header will not be removed from output files. so you get the pages, but you also get the header. not the clean-girl bare-SVG moment you were promised. π
-hor--helpβ show this message and exit. the classic. the icon. the π«Ά of every CLI.
π¦ SEE ALSO π¦
pdf2svg (1)β go say hi to the OG, she does the actual heavy lifting.
π AUTHOR π
Georges Khaznadar <georgesk@debian.org>
wrote this manpage for the Debian system. absolute legend behavior. β¨
π COPYRIGHT π
Copyright Β© 2024 Georges Khaznadar
this manual page was written for the Debian system (and may be used by others).
this manual page is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation as version 2 of the License.
this manual page is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this program. if not, see <http://www.gnu.org/licenses/>
on Debian systems, the complete text of the GNU General Public License version 2 can be found in /usr/share/common-licenses/GPL-2.
and that's the whole page, bestie. π this little love letter was part of the User Commands collection, dated βFebruary 19 2024β, and it lives under the name pdf2baresvg(1). go forth and make bare SVGs. you're gonna eat. π
π
π¦ where this page comes from
- debian trixie: pdf2svg 0.2.4-1 Β· GPL-2.0-or-later
- ubuntu noble: pdf2svg 0.2.3-5build3 Β· GPL-2.0-or-later
- ubuntu questing: pdf2svg 0.2.4-1
- ubuntu resolute: pdf2svg 0.2.4-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: pdf2svg 0.2.4-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms