I have a large number of PDF files which have two slides to a page (for printing).
The format is A4 pages each with two slides setup like so:
-----------
| slide 1 |
-----------
| slide 2 |
-----------
How can I generate a new PDF file with one slide per page?
Happy to use GUI, CLI, scripts or even interface with a language's PDF library; but I do need the text on the slides to still be selectable.
mutool
works brillantly for this. The example below will chop each page ofinput.pdf
into 3 horizontal and 8 vertical parts (thus creating 24 pages of output for each 1 of input):To install
mutool
, just installmupdf
, which is probably packaged with most GNU/Linux distributions.(Credits to marttt.)
On debian based linux systems like ubuntu, you can install it using
Briss is "a simple cross-platform (Linux, Windows, Mac OSX) application for cropping PDF files. A simple user interface lets you define exactly the crop-region by fitting a rectangle on the visually overlaid pages." It's open source (GPL).
Works well for me. The GUI is minimal, but functional. It can also be used from the command line.
PDF Scissors allowed me to bulk split (crop) all pages in a PDF.
Thanks to moraes for that answer. In my case, the resulting PDF looked fine in Adobe Reader and Mac preview, but did not appear to have been split into separate pages at all when viewing on iOS. I used Python 2.7.8 and PyPDF 2, and modified the script as follows, which worked fine. (and reordered the pages left/right, rather than right/left).
You can use a Python library called PyPDF. This function will split double pages no matter what the page orientation is:
With
mupdf-1.8-windows-x64
, in win10 CMD, you need to have 'poster ' (followed by space and without quotes) before the horizontal parameter (-x ). For example for a double-paged scan to PDF:What a wonderful tool! Merci infiniment !.. (and the output file ~9MB is only 52KB bigger than the original!)