Mobile app version of vmapp.org
Login or Join
Shelton719

: Indesign Data Merge - Variable number of pages from column in CSV file I have a CSV file with one line per SKU and a column "Qty" specifying the quantity of each SKU in a large shipment

@Shelton719

Posted in: #AdobeIndesign #DataMerge

I have a CSV file with one line per SKU and a column "Qty" specifying the quantity of each SKU in a large shipment of products.

To clear customs in the country I'm in, I now need to stick one label per box, so I need to set up a process for printing X labels per SKU, with X corresponding to the value of column "Qty" for each respective SKU in the CSV (the quantities vary greatly).

Getting one label per SKU is no problem through data merge but how could I get the number of labels for each SKU from a column in the CSV?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton719

2 Comments

Sorted by latest first Latest Oldest Best

 

@Tiffany317

For this kind of logic to work within InDesign, you need a script. Data Merge is pretty simple -- no different from the "Mail Merge" you find in word processors.

Without a custom script, you have two choices: create the correct number of individual lines in the original CSV or create one instance of each label and print it the appropriate number of times by entering the appropriate number in the "Copies" field of Acrobat. Printing multiple copies of each label from PDFs is considerably faster than printing multiple instances of a label from InDesign, because of the different amounts of processing involved, so even with a custom script you may not be happy with the speed of your output.

Which approach would work best depends on how you're generating the CSV in the first place, so I can't really give you any guidance in that regard.

I'm assuming that this is not a one-off situation, but something that you will have to build into a standard workflow for the future. If so, it's worth investing some time into developing and testing different approaches to see which will work best.

Faced with the same situation, I would probably look first to my database or order-processing application to see whether it could generate a fully populated CSV to drive Data Merge. If that wasn't feasible, I would probably head over to the Adobe InDesign and Acrobat scripting forums and ask for help. Scripters are an amazingly helpful bunch of people, and it's quite likely someone will reply with the exact script you need.

10% popularity Vote Up Vote Down


 

@Turnbaugh909

You can do the calculation prior to creating the CSV and add the value to a new field in each row. Then populate your InDesign text area from that.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme