Skip to main content
mikek41420236
Participating Frequently
January 21, 2025
質問

Script exporting multiple sinlge page PDF's named as database field from multiple page InDesign file

  • January 21, 2025
  • 返信数 1.
  • 1131 ビュー

I want to create labels to put on carboard boxes containing products, the labels have product information om them, text and logos. The data comes from an Excel database.

So I found a software to handle this. Teacup bar code maker & Teacup data linker.

 

Then comes the next problem. What I want to do is to auto generate let’s say for example 25 labels with the push of a button (once I have set up the template for the label) with data from a database.

 

Then I want these labels to be exported from Indesign as separate PDF documents, each page/label, named with a prefix and the item code for the specific item, for example “Outer box label 123123” (“Prefix Item code”)

 

I've been told this can be done with a script, but I have none whatsoever experience in scripting. Does anyone know if a script like this exist or if I can get someone to produce it for me?

 

Best regards Fredrik

 

返信数 1

Robert at ID-Tasker
Legend
January 21, 2025

If you share an example INDD file with information from which "places" on the page information should be extracted - someone here should be able to help you - either for free or for a fee. 

 

mikek41420236
mikek41420236作成者
Participating Frequently
January 21, 2025

OK. So hoefully someone can help me 🙂

Here is the sample file that I have created. (Before I buy the software this is a testfile to see if this works as I want it too so this is made with the trial software.)

I have created the template, and linked information from the database as I want to.

I tested to do an export to separate PDF files and this works as I want it to.

 

The only thing left now is to be able to export these pages as separate PDF files with the naming I want it to have.

 

I have attaced the InDesign file. I have also attached an image of the item code I want to be part of the name. It's marked in yellow. The Item code is called "artnr" in the database I use. 

I have also attached the sample database.

 

The software I will use is called Teacup DataLinker

The thing is, that I will create different template files for different types of products so the item number (artnr) will not always be in the same place as in the template attached.

 

Is it possible to get the script to collect the name from the data base?

I aslo want a prefix specifying what type of label it is. Outer packaging or inner packaging pallet and perhaps something else that I can't think of now, so I need to be able to change the prefix.

 

So it should be named 

"Prefix Item code"

 

So for example " Outer packaging label 101131-E" or "Inner packaging label 101132-E"

 

Best regards Fredrik

Robert at ID-Tasker
Legend
January 21, 2025

I'm not sure you really need TeaCup for that...

 

It's simple enough for DataMerge - unless, you need to be able to constantly update / synchornise data...