XPSTOPNG(1)

πŸ’… XPSTOPNG(1) β€” the XPS β†’ PNG glow-up station πŸŽ€

okay so bestie, welcome to xpstopng, part of the XPS Tools fam ✨ this is the manual page, and yes you're gonna read it, because it's literally gonna make your XPS files into PNGs and that's iconic.


🌸 NAME 🌸

xpstopng β€” the XPS to PNG converter, no cap πŸ’–


✨ SYNOPSIS ✨

xpstopng [OPTION...] FILE [OUTPUT FILE]

like, that's the whole vibe. options first, then your file, then optionally where you want the output to go πŸ¦‹


πŸ’« DESCRIPTION πŸ’«

xpstopng converts XPS documents to PNG format. periodt. 🫢

Here's the tea: xpstopng reads the XPS file, FILE, and writes a PNG file per page β€” with the page number and file type appended to OUTPUT FILE. so if you've got a 12-page doc you're getting 12 lil PNG besties, each one labeled πŸŽ€

If OUTPUT FILE is not specified, "page" will be used. yep, just page. she's simple, she's classic πŸ’…


πŸ”₯ OPTIONS πŸ”₯

  • -?, --help β€” show help options. the classic "what does anything do" button πŸ™ˆ
  • *-d *DOCUMENT, --document=DOCUMENT β€” the document inside the XPS file to convert. by default, the first document of the XPS file is used, so if you don't pick one, she picks for you πŸ’œ
  • *-f *PAGE, --first=PAGE β€” the first page to convert. start your range here πŸ‘‘
  • *-l *PAGE, --last=PAGE β€” the last page to convert. end your range here 🌈
  • -o, --odd β€” convert only odd pages. 1, 3, 5, 7… you get it ✨
  • -e, --even β€” convert only even pages. 2, 4, 6, 8… the other half πŸ’«
  • -r RESOLUTION, --resolution=RESOLUTION β€” horizontal **and vertical resolution in PPI (Pixels Per Inch). the default is 150 PPI. both directions, one setting, efficient queen πŸŽ€
  • *--rx=RESOLUTION* β€” horizontal resolution in PPI (Pixels Per Inch). the default is 150 PPI. just the x-axis, if you're feeling specific πŸ¦‹
  • *--ry=RESOLUTION* β€” vertical resolution in PPI (Pixels Per Inch). the default is 150 PPI. just the y-axis, same energy 🌸
  • *-x *X, --crop-x=X β€” the x-coordinate of the crop area top left corner. where the crop starts, horizontally πŸ“
  • *-y *Y, --crop-y=Y β€” the y-coordinate of the crop area top left corner. where the crop starts, vertically πŸ“
  • *-w *WIDTH, --crop-width=WIDTH β€” the width of crop area. how wide the lil window is πŸ’–
  • *-h *HEIGHT, --crop-height=HEIGHT β€” the height of crop area. how tall the lil window is πŸ’–
  • -t, --transparent-bg β€” use a transparent background for pages instead of white. highkey the most main character option on this list, honestly 🧚✨
πŸ’€ heads up bestie: -h here is crop height, not help. the help flag is -? / --help. don't get got πŸ™ˆ

😭 BUGS 😭

found a bug? Please send bug reports to https://bugzilla.gnome.org/enter_bug.cgi?product=libgxps. she's not perfect, she's just doing her best 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

the whole converter friend group, go say hi πŸ’œ


and that's the page, bestie ✨ this one's from XPS Tools, dated 10/12/2023 β€” go forth and convert, you absolute icon πŸ‘‘πŸ’