XPSTOSVG(1)

✨ XPSTOSVG(1) ✨

okay so bestie, welcome to the xpstosvg stan page πŸ’– this whole thing lives inside the XPS Tools manual, and it's genuinely the glow-up your XPS files have been waiting for. let's get into it πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

xpstosvg [OPTION...] FILE [OUTPUT FILE]

like, that's the whole vibe. one file in, one SVG out, and a whole pile of options if you're feeling extra πŸ’…

🌸 DESCRIPTION 🌸

xpstosvg converts XPS documents to SVG format. no cap, that's literally the job ✨ it reads the XPS file, FILE, and writes an SVG file, OUTPUT FILE.

and if you're too cool to name your OUTPUT FILE? no worries bestie, the output filename gets derived from the FILE filename. it just knows πŸ™ˆ

πŸ‘‘ OPTIONS πŸ‘‘

  • -?, --help β€” show help options. the classic "help me help you" moment 🫢
  • -d DOCUMENT, --document=DOCUMENT β€” the document inside the XPS file to convert. by default, the first document of the XPS file is used, which is honestly so chill of it 🧚
  • -f PAGE, --first=PAGE β€” the first page to convert. your starting line ⭐
  • -l PAGE, --last=PAGE β€” the last page to convert. the grand finale 🎬
  • -o, --odd β€” convert only odd pages. only the quirky ones πŸ’€
  • -e, --even β€” convert only even pages. balanced queen energy 🌈
  • -r RESOLUTION, --resolution=RESOLUTION β€” horizontal and vertical resolution in PPI (Pixels Per Inch). the default is 150 PPI, and it does both directions at once because it's efficient like that πŸ”₯
  • --rx=RESOLUTION β€” horizontal resolution in PPI (Pixels Per Inch). the default is 150 PPI. x-axis only, she's specific πŸ’œ
  • --ry=RESOLUTION β€” vertical resolution in PPI (Pixels Per Inch). the default is 150 PPI. y-axis only, equally specific 🩡
  • -x X, --crop-x=X β€” the x-coordinate of the crop area top left corner πŸ“
  • -y Y, --crop-y=Y β€” the y-coordinate of the crop area top left corner πŸ“
  • -w WIDTH, --crop-width=WIDTH β€” the width of crop area βœ‚οΈ
  • -h HEIGHT, --crop-height=HEIGHT β€” the height of crop area βœ‚οΈ
  • --paper-width=WIDTH β€” the paper width πŸ“„
  • --paper-height=HEIGHT β€” the paper height πŸ“„
  • --expand β€” expand pages smaller than the paper to fill the paper. by default, pages are not scaled, so this is the "go big or go home" toggle πŸ”₯
  • --no-shrink β€” don't scale pages which are larger than the paper. by default, pages larger than the paper are shrunk to fit. so this one's the "let it overflow, I dare you" option 😭
  • --no-center β€” don't center on the paper pages smaller than the paper (after any scaling). by default, pages smaller than the paper are aligned to the lower-left corner. iykyk 🫢

πŸ’€ BUGS πŸ’€

found a bug? bestie, please send bug reports to https://bugzilla.gnome.org/enter_bug.cgi?product=libgxps β€” they genuinely want to hear it, no gatekeeping πŸ™

πŸ”— SEE ALSO πŸ”—

xpstojpeg(1) xpstopng(1) xpstopdf(1) xpstops(1) β€” the whole squad, go say hi πŸ‘‹


and that's the page, bestie πŸŽ€ huge thanks to XPS Tools, version stamped 10/12/2023 β€” she's XPSTOSVG(1) and she ate πŸ’…βœ¨