• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Coupon Code Line Text Update

New Here ,
Jan 20, 2017 Jan 20, 2017

Copy link to clipboard

Copied

I have an InDesign file that a previous colleague had made for use in creating percent off coupon cards.

I'm wondering if there's a way to easily automate the copy, paste, save process of updating each random number/letter coupon code for each specific card that needs to be saved.

It appears as though they would go to a text file, copy the random string of number/letters, paste it into one line of text in the InDesign file, and then save out to a pdf for printing...which seems horribly inefficient when you have to repeat this process 500 times.

Any help would be more than greatly appreciated!!!

TOPICS
Scripting

Views

1.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

There are two possible quick ways:

  1. use Numbering list (in paragraph format)
  2. use Data Merge (with external table)

and the last solution:

  • write a script for your own requirements

Have fun

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

Hi pixxxel! Happy New Year To You! (… and to the op!) 

Could the op show us a screenshot?

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

CouponScreenshot.jpg

Just trying to batch the code change. I have a word file with the 500 codes that I can manipulate in whatever way I need in order to get the batch to work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

Hi,

What is masked? The same 2 items on each page or different items per page?

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

Hi Obi, best wishes for you too.

Ink Monstr​

Data Merge.

Use a tab delimited TEXT instead of your word file and prepare you INDD (see screenshots below)

*.txt

Code_VK.png

*.indd

Code_VK_ID0.png

Code_VK_ID1.png

Code_VK_ID2.png

Code_VK_ID3.png

Have fun

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

Awesome! Thanks. I don't think I'll be needing to change anything other than the code itself so what I will most likely do is create a master page with all of the basic text and then create a new page for just the code itself.

Is there a way to use the method you're describing to change the code in separate pages? Or would this change need to be done on one page? The reason I ask is because how I will go about saving them out will depend on if the change can only be done on one page or if I can have it create 500 different pages with unique codes in order to save one large pdf.

Hope that makes sense. Appreciate the help!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

If only code to be changed, just create on the master page, on a layer "Code", a "main" text block

and just have a single current page [see your Prefs. to have an "pages" automatic creation!]

Just import your Word file clicking in the current text block and it's done!

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

Awesome. Any chance you could provide a slightly more detailed step by step for this? I get the gist but am unsure as to where some of those preferences are located and how to import the word file

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

You can create a merged document with all codes at different pages by pressing the bottom left Button in Data Merge palette.

Create one PDF with all pages and/or split the PDF (with Acrobat Prof) in several pages.

Have fun

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

pixxxel,

Let's do very simple here! 

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

LATEST

Simply:

Create a doc.

Capture d’écran 2017-01-21 à 21.25.22.png

On Master pages, create text blocks on 2 layers.

Red: Static text (the same on each page, as you said!)

Blue: For "Code" texts

Capture d’écran 2017-01-21 à 21.50.17.png

Masking "Red" layer and selecting the 2 text blocks:

Capture d’écran 2017-01-21 à 21.51.17.png

Go to the Prefs panel / See: Redistribution intelligente:

Capture d’écran 2017-01-21 à 21.51.59.png

Go to the current page (only one page):

Capture d’écran 2017-01-21 à 21.54.41.png

On the left side, the "Code" text you will import (.doc, .docx, .txt or excel file):

About the "Code" para style you could use, you could play an auto-numbering:

Capture d’écran 2017-01-21 à 22.08.10.png

Import your text:

Capture d’écran 2017-01-21 à 22.09.01.png

Done!

In other cases, pixxxel's way could be really better!

(^/) 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2017 Jan 21, 2017

Copy link to clipboard

Copied

I think it, too.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines