Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have pdf slides in landscape mode and would like to create a new pdf file containing the slides 4-up (in landscape mode again) like this:

-----------------
|   1   |   2   |
-----------------
|   3   |   4   |
-----------------

I know that there is pdfjam (which can be used like this pdfjam --fitpaper true --nup 2x2 --delta '1mm 1mm' --scale 0.98 infile.pdf), but it does not preserve hyperlinks -- gs does, though. I am wondering how one could use gs to achieve the task (?)

Alternatively, I mainly use 4-up to print slides. I couldn't manage to use lpr for achieving this. If someone has an idea for that, this would be interesting as well.

share|improve this question
    
Does this solve the task (lpr Q)? lpr -o number-up=4 -o number-up-layout=btlr document.pdf . Ref - fsu.edu –  Sukminder Apr 26 '13 at 21:37
    
This is the closest I've come to a solution, but it still prints the pages in portrait format... (no matter whether I use -o landscape or not): lpr -o sides=one-sided -o landscape -o number-up=4 -o number-up-layout=btlr -o fitplot document.pdf; might be the printer... that's actually why I was looking for way to first create a correct pdf file which I can then just send to the printer –  Marius Hofert Apr 26 '13 at 22:13
    
If it is the printer you could try to print to pdf first. If in apt world: apt-get install cups-pdf, then lpr .... -P PDF. File should be stored in ~/PDF/ by default. (At least you can play around without wasting ink and paper ;)) –  Sukminder Apr 26 '13 at 22:18
    
That's indeed a good idea. I installed cups-pdf and executed the command again with -P PDF. I obtained lpr: No such file or directory. I even created ~/PDF but this didn't change anything. –  Marius Hofert Apr 26 '13 at 23:12
    
Here it worked out of the box. On install two new files was created: cups-pdf.conf and PDF.ppd. Diff here. Perhaps you have to try to re-run cups-genppdupdate, restart CUPS, check localhost:631/ etc. Also: Your pdfjam and my first posted lpr gives same result here – landscape PDF became 4 paged landscape. –  Sukminder Apr 26 '13 at 23:30

1 Answer 1

you can try with http://posterazor.sourceforge.net

I only convert a image. I dont know if convert text is possible.

share|improve this answer
    
One of the problem here is url conversion, so if your solution works only with image it's definitly not the good one I Guess –  Kiwy Dec 2 '13 at 16:54
    
But if you dont have other solution you can convert pdf to image whit 'convert' command and then use posterazor. –  inye Dec 20 '13 at 19:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.