Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can pdfjam re-order the pages for simple imposition and n-up print compositing? #51

Closed
ahillio opened this issue Jul 5, 2021 · 3 comments

Comments

@ahillio
Copy link

ahillio commented Jul 5, 2021

If we're printing a many-page document it's quite possible we need to re-order the pages... the way https://wiki.scribus.net/canvas/Making_a_booklet_with_Scribus_and_Adobe_Reader describes (for the Scribus desktop publishing software of course)... so for example

A 16-page booklet would print onto 4 sheets of paper:
sheet 1 front: pages 16,1
sheet 1 back: pages 2,15
sheet 2 front: pages 14,3
sheet 2 back: pages 4,13
sheet 3 front: pages 12,5
sheet 3 back: pages 6,11
sheet 4 front: pages 10,7
sheet 4 back: pages 8,9

This booklet form is for laying all the sheets flat on each other and folding them all at once together.

If we want more pages than can be folded this way (as in a book) we might need to fold each sheet individually, which would give us a page order like:
sheet 1 front: pages 4,1
sheet 1 back: pages 2,3
sheet 2 front: pages 8,5
sheet 2 back: pages 6,7
sheet 3 front: pages 12,9
sheet 3 back: pages 10,11
sheet 4 front: pages 16,13
sheet 4 back: pages 14,15
sheet 5 - 200 or more etc would follow this pattern.

Can pdfjam do ordering like this? (If not, do you happen to know a command line tool which can?)

@DavidFirth
Copy link
Collaborator

Yes, I believe that all of this is possible with pdfjam. Note that pdfjam is just a front end for the pdfpages package in LaTeX. If you haven't looked there already, I recommend the user manual for pdfpages (a link to which should appear if you use pdfjam --help) --- all the facilities are documented there.

@ahillio ahillio changed the title can pdfjam re-order the pages can pdfjam re-order the pages for simple imposition and n-up print compositing? Jul 9, 2021
@GuillaumeFromage
Copy link
Contributor

In case anyone falls on this, you can with --booklet=true and its friends (if necessary): --nup=2x1 --landscape --paper ledger, etc.

@ahillio
Copy link
Author

ahillio commented May 25, 2022

Yes this is great, thanks. Commands like:
pdfjam --nup 2x1 --landscape --signature 4 myfile.pdf
are what I was looking for.

@ahillio ahillio closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants