![osx adobe pdf splitter osx adobe pdf splitter](https://d3pbdh1dmixop.cloudfront.net/assets/pdfexpert.mac/theme.responsive/index/block01-alldevices.png)
Make sure you have Python and pdftk.exe within PATH. Here's a Python script (compatible to 3.8) that uses pdftk.exe (tested with 2.02) to count the total number of pages and extract all to single files. I'm also aware of the solution provided by However, I like to get recurring tasks done from Windows (10) Explorer by selecting one or more files and going for right click → Send To. The answer provided by user used to work fine for me, but somehow ceased working somewhere between GS versions 9.20 and 9.50. Updated answer which relies on pdftk.exe only, without invoking Ghostscript See comments to make it work with Ghostscript 9.50+.
![osx adobe pdf splitter osx adobe pdf splitter](https://i.ytimg.com/vi/HkyNx7qJaSo/maxresdefault.jpg)
Osx adobe pdf splitter windows 10#
It works for me under Windows 10 with Ghostscript 9.22. line if you already have Ghostscript folders in your system PATH environment variable. You might need to customize (with relevant Ghostscript version) or remove the set path=. Drag and drop one (or even more) multipage PDF on it and it will create one standalone PDF file for each page of your PDF, appending the suffix -001, -002 and so on to the name to distinguish the pages. Name this script something like split PDF.bat and put it on your desktop. Gswin64c.exe -dNumRenderingThreads=2 -dBATCH -dNOPAUSE -dQUIET -dFirstPage=%%n -dLastPage=%%n -sDEVICE=pdfwrite -sOutputFile="%~d1%~p1%~n1-!x!.pdf" "%1" Rem getting number of pages of PDF with GhostScriptįor /f "usebackq delims=" %%a in (`gswin64c -q -dNODISPLAY -c "(%~n1%~x1) (r) file runpdfbegin pdfpagecount = quit"`) do set "numpages=%%a"Įcho Extracting page %%n of %numpages%. Set path=C:\Program Files\gs\gs9.22\lib C:\Program Files\gs\gs9.22\bin %path%Įcho Splitting "%~n1%~x1" into standalone single pages. Rem Customize or remove this line if you already have Ghostscript folders in your system PATH Here is a script for Windows command prompt (working also with drag and drop) assuming you have Ghostscript installed: off