Another Data Merge script: Data merge to batches

This latest script compensates for a feature that should be available in InDesign’s Data Merge feature, but simply doesn’t work.

The problem:

Take for example the following Data Merge file where we want to export a custom range, but prepare PDFs in batches of 50s for production purposes. Each record is one page long.

dmlots001

When the Data Merge feature is used in Adobe InDesign, it is possible to merge to several new InDesign files that contain a maximum amount of records per file. The same dialog box is present when merging directly to PDF as well.

dmlots002

Unfortunately, the Record Limit per Document checkbox may as well be there for decoration, because it doesn’t work. Instead of 13 PDFs being created with the maximum size of each PDF being 50 records long, a PDF the size of the complete merge file is created.

dmlots003

The workaround

It is possible to split the document into ranges 50 pages per PDF, but it has to be done in Acrobat. From here, click the Organize Pages button.

dmlots004

This will show the Organize Pages toolbar.

dmlots005

From here, click on the split icon to show the split pages portion of the toolbar.

dmlots005

With the split pages toolbar now visible, choose the appropriate split by dropdown and edit the amount required. In this case, we need “number of pages” and 50 pages.

dmlots005b

The files now need to be saved somewhere. Click the Output Options button to show the Output Options dialog.

dmlots005c

Select a destination for the files and any additional filenaming information and click OK.

dmlots006

Once back at the regular toolbar, click the big blue split button.

dmlots005

The task will run and then present a dialog box once it is complete.

dmlots007

On an example such as the one demonstrated, this isn’t an onerous task. However, if working in a production setting where PDF page lengths can be tens of thousands or longer, this is inconvenient and unacceptable.

The solution

Rather than use the Adobe Acrobat solution, I would prefer that the original dialog box worked correctly. One option is to let the Adobe InDesign Engineers know that it should be fixed. A link to the direct request can be found here.

Until it is fixed, I’ve written a free script specifically for this purpose.

dmlots008

Using the earlier example, the same settings will be keyed in.

dmlots009

Once keyed in, click OK. A progress bar will let you know how the merge is going.

dmlots010

An alert will let you know when the merge is complete. The files are then saved to the selected destination with no extra splitting required.

dmlots011

Interested in this script? It can be downloaded from here.

Advertisements

About colmin8r
A prepress operator since 1997 specialising in Adobe InDesign.

One Response to Another Data Merge script: Data merge to batches

  1. Pingback: Today in Design - Top Articles RoundUp 4 June 2018 by Pariah Burke Publishing & Design Consulting & Training

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: