PSRESIZE(1)

πŸ“¦ version 2026.0, in alpine 3.24

πŸŽ€ NAME πŸŽ€

this is psresize(1), from the General Commands Manual. psresize β€” rescales and centers a document for a new output paper size. it's giving "fit check, but for paper" energy. πŸ’…

✨ SYNOPSIS ✨

psresize [-wwidth] [-hheight] [-ppaper] [-Wwidth] [-Hheight] [-Ppaper]
[-q] [infile [outfile]]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so psresize rescales and centres a document onto a different size of paper. the input PostScript file should follow the Adobe Document Structuring Conventions. yes, DSC. it's a whole vibe. πŸ“„βœ¨

The -w option gives the output paper width, and the -h option gives the output paper height. you normally specify these in cm or in so PostScript's points (1/72 of an inch) get converted to centimeters or inches. The -p option can be used instead to set the paper size; otherwise a default value is used. See paper(1). 🫢

The -W option gives the input paper width, and the -H option gives the input paper height. The -P option can be used instead to set the paper size; otherwise a default value is used. See paper(1). πŸ’–

psresize normally prints the page numbers of the pages output; the -q option suppresses this. quiet mode, no page-number yapping. 🀫

The flags, bestie:

  • -w width β€” sets the output paper width. usually you put cm or in on it, converting PostScript's points (1/72 of an inch) to centimeters or inches. πŸ“
  • -h height β€” sets the output paper height. same unit situation: cm or in, bestie. πŸ“
  • -p paper β€” sets the output paper size instead of using -w and -h. if you don't use it, a default value is used. See paper(1). πŸŽ€
  • -W width β€” sets the input paper width. πŸ“₯
  • -H height β€” sets the input paper height. πŸ“₯
  • -P paper β€” sets the input paper size instead of using -W and -H. if you don't use it, a default value is used. See paper(1). πŸŽ€
  • -q β€” suppresses the normal page-number output. silent mode. 🀐

🌸 EXAMPLES 🌸

want to convert a document on A4 size paper to letter size paper? this command does exactly that:

psresize -PA4 -pletter in.ps out.ps

ate. πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Written by Angus J. C. Duggan. periodt. πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

okay so this section is empty in the original. no references, no cross-refs, nothing. πŸ’€

🌈 TRADEMARKS 🌈

PostScript is a trademark of Adobe Systems Incorporated. legal moment ✨

πŸ’€ BUGS πŸ’€

psresize does not accept all DSC comments. so if your DSC comments are giving extra, some of them may not be accepted. 😭


and that's the whole page, bestie. the footer says source/version PSUtils and page PSRESIZE(1). there's no date printed on this one. mwah πŸ’…

πŸ“¦ where this page comes from