July 13, 2013 6 Comments
Several forums dedicated to InDesign advice have recently been asked the following question: “How to split an InDesign file into single page PDFs”.
Splitting a large PDF into single page PDFs is possible via the extract pages feature of Acrobat 9 and up. The resulting pages are then extracted to the same file location as the original PDF but contains an underscore and page number in the filename.
Splitting a large PDF into fixed page lengths (e.g. singles, doubles etc) is possible via the Split Document feature of Acrobat X and up. This also provides limited control concerning the name and location of the resulting split PDFs, as well as other ways of splitting the PDF (e.g. filesize or bookmarks).
So splitting a large PDF into smaller PDFs is possible via Acrobat. However, the brief was “How to split an InDesign file into single page PDFs”.
By default, there is no way to do this directly from InDesign without a script. However, there are at least four scriptable solutions available as of this moment:
- (updated 5 November 2013) Scripter Dmitry Lapaev offers three scripted solutions, but of these there are two that will be of most use to those who intend to output to print: the first is Quick Export to Adobe PDF (see this link here) and the next is Batch Export to PDF (see this link here).
- Fellow wordpresser Macgrunt has also produced an applescript that allows the export of single page PDFs from one InDesign file. While it does not have a user interface, it certainly does the job. Read more about his script here and read his related blog posts concerning renaming of files.
So the question is answered… right? Yes and no. Yes, it is possible to export to individual or smaller page PDFs, but the naming of the files could be better.
Using an example of business cards that have been data-merged to a new InDesign file, the brief is now to produce PDFs with filenames that reflect the names of the people on the business cards. Using the earlier solutions, the files would still need to be renamed afterwards. So how is this done?
SOLUTION ONE: Loic Again!
Loic has another script called PDF Export Cropper. This script is much more flexible than the previous scripts in that files can be split according to more variables, and the file naming is more flexible. To demonstrate, an example single sided business card has been created. The PDFs are to be named based upon the name of the person, so the field that holds the client’s name has been assigned a special paragraph style that is used nowhere else on the card – in this instance, the style “clientname” has been assigned.
The file is then merged to a new InDesign file. Once the new file is created, the PDF Export Cropper script is run.
A new user interface appears. In this example, within the “Choose Identifier” portion of the interface, the appropriate paragraph style has been chosen. The filename is to be the name of the resulting paragraph style, so all that is left to do is click Export.
And voila! The PDFs are split and named based on the client name that appears on the business card.
The only downside – that the cards can only be one page (that is, if the business cards were double-sided, Loic’s script would not work).
Loic’s scripts (PDF Export Cropper and Custom Export) can be downloaded here.
SOLUTION TWO: Hans Haesler
German Swiss scripter Hans Haesler has a similar script to Loic’s script. Sadly for me, it is in German, so I can’t understand the user interface that the script creates. A link to the script and a brief how-to-use for Anglophones is available here.
SOLUTION THREE: Via Adobe Acrobat
Unlike the previous two solutions, this solution requires the data merge file to be merged to one large PDF. It also requires that the field from the database that contains the names to become the future filenames is called PartnerHQ_Id. From here, an Acrobat action has to be run. The action is available from here:
First, the action will have to be loaded by opening Acrobat, select the File Menu, Action Wizard, Edit Actions. From the new window, select Import and then navigate to the downloaded split files.sequ file.
Next, create a new folder and copy the PDF to merge and the csv or txt file that was used for the data merge into that folder.
Once this is done, open the PDF to be split using Adobe Acrobat and from the File Menu, select Action Wizard, split file
A new window will open, and the file that is already opened should be listed in the window. Click Next.
At this stage, the script presents an error. Click Close.
Voila! The PDFs are renamed based on the client names. The folder also contains the original PDF and the database files.
So there are at least three solutions to this brief.