PSNUP(1)

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

πŸ’– PSNUP β€” bestie's guide to multiple pages per sheet πŸ’–

okay so this is psnup from the PSUtils collection, living in section 1 of the general commands manual. it's the girl who takes your pages and stacks them, no cap. 🫢


✨ NAME ✨

psnup β€” multiple pages per sheet πŸ’…


🌸 SYNOPSIS 🌸

psnup [-wwidth] [-hheight] [-ppaper] [-Wwidth] [-Hheight] [-Ppaper]
[-l|-r|-f] [-c] [-mmargin] [-bborder] [-d[lwidth]] [-sscale] [-nup] [-q]
[infile [outfile]]

πŸ‘‘ DESCRIPTION πŸ‘‘

Psnup puts multiple logical pages onto each physical sheet of paper. iconic behaviour fr fr. ✨

heads up bestie: the input PostScript file should follow the Adobe Document Structuring Conventions. that's the vibe check it has to pass. πŸ“„

The -w option gives the paper width, and the -h option gives the paper height, specified in pt, mm, cm, or in. The -p option can be used instead, to set the paper size; otherwise a default value is used. see paper(1). πŸŽ€

The -W, -H, and -P options set the input paper size, if it is different from the output size. this makes it easy to impose pages of one size on a different size of paper β€” lowkey genius. πŸ¦‹

The -l option should be used for pages which are in landscape orientation (rotated 90 degrees anticlockwise). The -r option should be used for pages which are in seascape orientation (rotated 90 degrees clockwise), and the -f option should be used for pages which have the width and height interchanged, but are not rotated. pick your girl wisely. πŸ’«

Psnup normally uses row-major layout, where adjacent pages are placed in rows across the paper. The -c option changes the order to column-major, where successive pages are placed in columns down the paper. it's giving ✨options✨. 🌈

A margin to leave around the whole page can be specified with the -m option. This is useful for sheets of thumbnail pages, because the normal page margins are reduced by putting multiple pages on a single sheet. πŸ’–

The -b option is used to specify an additional margin around each page on a sheet. πŸŽ€

The -d option draws a line around the border of each page, of the specified width. If the lwidth parameter is omitted, a default linewidth of 1 point is assumed. The linewidth is relative to the original page dimensions, i.e., it is scaled down with the rest of the page. not me being obsessed with tiny borders. πŸ–ŠοΈ

The scale chosen by psnup can be overridden with the -s option. This is useful to merge pages which are already reduced. 🧚

The -nup option selects the number of logical pages to put on each sheet of paper. This can be any whole number; psnup tries to optimise the layout so that the minimum amount of space is wasted. If psnup cannot find a layout within its tolerance limit, it will abort with an error message. The alternative form -nnup can also be used, for compatibility with other n-up programs. πŸ’€

Psnup normally prints the page numbers of the pages re-arranged; the -q option suppresses this. 🀫


🌟 OPTIONS 🌟 (the full rundown, bestie)

  • -wwidth β€” set the paper width. units: pt, mm, cm, or in. πŸ“
  • -hheight β€” set the paper height. same units, same energy. πŸ“
  • -ppaper β€” set the paper size instead of using -w/-h; otherwise a default value is used. see paper(1). πŸŽ€
  • -Wwidth β€” set the input paper width, if it's different from the output size. πŸ¦‹
  • -Hheight β€” set the input paper height, if it's different from the output size. ✨
  • -Ppaper β€” set the input paper size, if it's different from the output size. πŸ’–
  • -l β€” for pages in landscape orientation (rotated 90 degrees anticlockwise). πŸŒ…
  • -r β€” for pages in seascape orientation (rotated 90 degrees clockwise). 🌊
  • -f β€” for pages whose width and height are interchanged, but which are not rotated. πŸ”„
  • -c β€” switch the layout order from row-major to column-major, so successive pages go in columns down the paper. πŸ“š
  • -mmargin β€” leave a margin around the whole page. great for sheets of thumbnail pages, since the normal page margins get reduced when you put multiple pages on one sheet. πŸ–ΌοΈ
  • -bborder β€” specify an additional margin around each page on a sheet. 🎁
  • -d[lwidth] β€” draw a line around the border of each page, of the specified width. omit lwidth and the default linewidth of 1 point is assumed. the linewidth is relative to the original page dimensions, i.e., it scales down with the rest of the page. πŸ–ŠοΈ
  • -sscale β€” override the scale psnup chose. useful to merge pages which are already reduced. 🧚
  • -nup β€” select the number of logical pages to put on each sheet. can be any whole number; psnup tries to optimise the layout so the minimum amount of space is wasted. if it can't find a layout within its tolerance limit, it aborts with an error message. πŸ’€
  • -nnup β€” the alternative form, for compatibility with other n-up programs. same job, different outfit. πŸ‘―
  • -q β€” suppress the printing of the page numbers of the re-arranged pages (psnup normally prints them). 🀫
  • infile β€” your input file. πŸ“₯
  • outfile β€” your output file. πŸ“€

🌈 EXAMPLES 🌈

The potential use of this utility is varied but one particular use is in conjunction with psbook(1). For example, using groff to create a PostScript document and lpr as the UNIX print spooler a typical command line might look like this:

groff -Tps -ms file | psbook | psnup -2 | lpr

where file is a 4 page document this command will result in a two page document printing two pages of file per page and rearranges the page order to match the input pages 4 and 1 on the first output page and pages 2 then 3 of the input document on the second output page. the way that math works out?? main character energy. πŸ”₯


πŸ’œ AUTHOR πŸ’œ

Written by Angus J. C. Duggan. we stan. 🫢


πŸŽ€ SEE ALSO πŸŽ€

(this section is doing the silent treatment in the original β€” nothing listed under it, so nothing to add. the cross-refs that do show up live in the DESCRIPTION and EXAMPLES above: paper(1) and psbook(1). iykyk. πŸ™ˆ)


⭐ TRADEMARKS ⭐

PostScript is a trademark of Adobe Systems Incorporated. ✨


πŸ¦‹ BUGS πŸ¦‹

Psnup does not accept all DSC comments. 😭 that's it, that's the tea.


a gentle reminder bestie: this one's a real tool doing real work on real files. keep your flags exact and your input DSC-compliant. πŸ’…

and that's a wrap on PSNUP(1) from the PSUtils manual, dated and sourced just like the original footer said β€” PSUtils, PSNUP(1). slay, go print something cute. πŸŒΈπŸ’–πŸŽ€

πŸ“¦ where this page comes from