PSSELECT(1)

πŸ“¦ version 61719, in fedora 43, fedora 44

πŸ’– NAME πŸ’–

psselect β€” it picks pages out of a PostScript file, bestie. That's the whole vibe.


✨ SYNOPSIS ✨

psselect [-q] [-e|-o] [-r] [[-p]pages] [infile [outfile]]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so psselect selects pages from a PostScript document and makes you a brand new PostScript file out of them. Lowkey magical. The input PostScript file should follow the Adobe Document Structuring Conventions β€” that's the ruleset, and it matters, okay? It's giving "read the room."

Here's the whole roster of options, no gatekeeping:

  • -e β€” selects all of the even pages. And yes, you can use it together with the other page selection options to select the even pages from a range of pages. Combo move.
  • -o β€” selects all of the odd pages. It may be used in conjunction with the other page selection options too. Slay.
  • -ppages β€” specifies which pages get selected. pages is a comma separated list of page ranges, and each one of those may be a page number, or a page range shaped like first-last. If first is omitted, the first page is assumed, and if last is omitted, the last page is assumed. It just fills in the blanks for you, so thoughtful.
  • -r β€” makes psselect output the selected pages in reverse order. Backwards, but make it fashion.
  • -q β€” psselect normally prints the page numbers of the pages rearranged, and this suppresses that. Quiet mode, main character energy, no commentary.

Also there's the prefix character _ β€” it means the page number is relative to the end of the document, counting backwards. And if you use just that character with no page number at all, a blank page will be inserted. Not a typo, that's literally what it does.

🚨 Real talk, bestie: if any of the -r, -e, or -o options are specified, the page range must be given with the -p option. This is for backwards compatibility with previous versions. Don't fight it, just pass -p.

πŸ“ NOTES πŸ“

The page number you hand to psselect is the number of the page counting from the start or end of the file, starting at one. The actual page number in the document may be different, so don't come for me if the numbers don't match. πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Written by Angus J. C. Duggan. Legend behaviour.


🌈 SEE ALSO 🌈


πŸ’… TRADEMARKS πŸ’…

PostScript is a trademark of Adobe Systems Incorporated. Respect the brand, iykyk.


πŸ’€ BUGS πŸ’€

Psselect does not accept all DSC comments. That's it, that's the bug. Not me being dramatic, it's just the truth.


That's the whole page, bestie β€” brought to you by the PSUtils girlies and their PSSELECT(1) manual page. Go select some pages. Periodt. πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from