2

I have a text document/csv with 100 unique codes that should be used for a gift card.

For the gift card, I need to provide 100 PDF's each with the unique code.

Is it possible to do this using Illustrator or InDesign? I'm thinking of making a textbox that can contain the code, but I don't know how to make 100 PDF's with the codes.

Thanks!

2

If you have uniqe code (and more variable data like QR-codes and so on):

Make textbox with code in your PDF, make it Variable and name Data Set, save Variable library. Edit XML file in your text/XML editor, copy and paste <v:sampleDataSet dataSetName="YourUniCode">. Fill corresponding fields.

You may have to create first file with codes and then use Find & Replace in your editor to surround code with XML tags. Then copypaste results in XML file.

Load your XML file (Variable library) into Illustrator.

Use script to export each dataset in separate PDF.

I have simple script on GitHub, you can adjust it to your specific needs.


If you have linear codes from n to m (1 to 100) you can import your PDF into template page to InDesign, make your text box with page number, make 100 pages and print it.

0

I have never done this myself but there are some excellent answers on this previous question:

Insert a variable on many pages in Adobe InDesign to fill in when printing PDF

0

I just used InDesign's "Data Merge" function. Works perfect from CSV!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.