I have a presentation in pdf file with two slides per page.

I want a presentation in pdf file with one slide per page.

I tried using ImageMagick:

convert -crop 1x2@ orig.pdf t2.pdf 

It divided the slides, but didn't crop them. In new file slides had whitespace on half of the page. I added +repage:

convert -crop 1x2@ orig.pdf +repage t6.pdf

It only worked on every second slide. Odd numbered slides still had the white space.


You need to +repage before and after the cropping operation.

convert -quality 100 -density 300 orig.pdf +repage -crop 1x2@  +repage t6.pdf

From the Imagemagick site you can read

It might be necessary to +repage the image prior to cropping the image to ensure the crop coordinate frame is relocated to the upper-left corner of the visible image. Similarly you may want to use +repage after cropping to remove the page offset that will be left behind. This is especially true when you are going to write to an image format such as PNG that supports an image offset.

As noticed from the OP this conversion from a vectorial pdf can be lossless.
The introduction of the option -density 300 will give a resolution maybe acceptable for our purpose that we will pay with an increased size of the file.
It can be increased e.g.to 600 DPI or more if needed.

If the file contains slides (e.g. from a powerpoint), included as images inside the PDF file it's possible to extract these with pdftoppm and include them in a new pdf file.

pdftoppm - Portable Document Format (PDF) to Portable Pixmap (PPM) converter

pdftoppm converts Portable Document Format (PDF) files to color image files in Portable Pixmap (PPM) format, grayscale image files in Portable Graymap (PGM) format, or monochrome image files in Portable Bitmap (PBM) format.

  • This creates pdf with low resolution. How do I keep the quality of the original? – andrybak Mar 30 '15 at 16:07
  • 1
    And this is another question! BTW It was your command line not mine :-) Do not worry, add -density 300 to the command line it should fix the problem with the resolution but you will pay it in term of file size (it will be an heavier file). – Hastur Mar 30 '15 at 16:35

No. You don't need any scripts at all. Remember back in the day when we wanted to print posters? In order to print a banner or a poster we would print the file with using a setting called Tile Pages. It would print the file in pieces and then we would tape it together. You're trying to do the same thing but from PDF to PDF.

Using a PDF Print driver, set the Print size to half the dimensions of your doubled up PDF. Then under "Page Handling"> "Page Scaling" choose "Tile all pages". You should see a preview with a dotted line for where the break will occur. Make your PDF and go on with the rest of your life.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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