Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am not familiar with Slackware repositories but there are programs out their that do what you want. Arch has a few.
Code:
yaourt -Ss pdf booklet
aur/booklet 1.0-1 (6)
Converts a pdf to a booklet
aur/livret 0.2-2 (1)
Booklet is a small freeware program written in Java for creating small
books from a PDF document. Drops from a source PDF file containing two
files the fronts and backs ready to be printed and stapled.
aur/pdf2book 1-3 (5)
Rearranges the pages in a PDF to be printed as a book (or booklet). Print
double-sided in \"short-edge\" mode.
aur/print-booklet-git 20111104-2 (2)
Print booklets from pdf and postscript files.
Thanks for the reply. So it's all done separate to other programs. I thought someone was going to tell me how to tweak the print setup of something like Adobe Acrobloat or Okular.
i took a look to see what slackware had installed - it had pdfseparate and pdfunite
For a 4 page, the deal was
pdfseparate file%d = file1, file2, file3 $ file4
pdfunite 1&4 front
pdfunite 2&3 back
lp -o landscape -o number-up=2 front
lp -o landscape -o number-up=2 back
These lend themselves to a script, which it is presumed all slackware users can knock up before breakfast :-/. But pdfunite firmly refused to accept any filenames. You have given me some useful search terms, and I'll run those down. I like the sound of pdf2book - seems like there's a console jockey behind that one somewhere.
I took a look at some of those. Webpage in arabic:-/. Then I found I didn't need to.
This makes 2 at a time.
pdf2ps file.pdf file.ps # Theoretically unnecessary as psbook handles pdf also
psbook -s4 file.ps booklet.ps
ps2pdf booklet.ps booklet.pdf # Purely to humour dodgy print utilities.
lp -o landscape -o number-up=2 booklet.ps # prints 4,1 on 1st booklet and 2,3 on second
turn pages over
lp -o landscape -o number-up=2 booklet.ps # prints 2,3 on 1st booklet and 4,1 on second
lp simply ignores it's own -P<pages> option in this setup.
Found I was getting a lot of $@#£&! from the print area due to too many suspends and resumes. A reboot sorted some messing. The pdf2ps and ps2pdf are unnecessary as psbook handles pdfs
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.