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.
Best Answer
You need to
+repage
before and after the cropping operation.From the Imagemagick site you can read
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.