Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split each PDF page in two?

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.

like image 334
stackoverflowuser95 Avatar asked Nov 12 '12 14:11

stackoverflowuser95


People also ask

How do I separate pages in a PDF without Acrobat?

If the pdf is out on the internet, simply go to the right place. If the pdf is on your computer, open an explorer window and navigate to the folder that the pdf is in. Drag and drop the document onto the Chrome window.


2 Answers

PDF Scissors allowed me to bulk split (crop) all pages in a PDF.

like image 90
stackoverflowuser95 Avatar answered Sep 24 '22 22:09

stackoverflowuser95


mutool works brillantly for this. The example below will chop each page of input.pdf into 3 horizontal and 8 vertical parts (thus creating 24 pages of output for each 1 of input):

mutool poster -x 3 -y 8 input.pdf output.pdf 

To install mutool, just install mupdf, which is probably packaged with most GNU/Linux distributions.

(Credits to marttt.)

On debian based linux systems like ubuntu, you can install it using

sudo apt install mupdf sudo apt install mupdf-tools 
like image 36
Skippy le Grand Gourou Avatar answered Sep 21 '22 22:09

Skippy le Grand Gourou