If the only difference in the brochure is one page, and the only difference on that one page is a text frame, you could try using Data Merge to populate the text frame onto 50 new pages, taking the marketing codes from a text file. Once you have the 50 pages, you could insert one each into 50 copies of the common page PDF. The second part may be scriptable, but I can't help you with that.
I have a document which I need to export 50 times with all having a different text frame on the booking page (marketing codes). Is there a script which will make this process quicker as I need to do this with every brochure every day. Thank you
Is there a difference between your "document" and "every brochure" - or are they the same thing?
How are you delivered the codes? Are they in a word file, text file, excel file???
The data merge is a good bet to inserting the codes though.
Further to that: the help files are one source of information.
However they say nothing about several things like encoding problems of file names (images you want to merge and place) containing special characters like umlauts etc.pp. on Mac OSX or when using a language script like Chinese…
Or the strange <FEFF> special characters inserted by the process, if there are empty fields.
See here for some solved problems around data merge:
Every brochure is made from the same indesign template and I just have to change one text box which contains the marketing codes. I have just been manually changing and exporting each one, which takes too long. How do I make the excel document with all the codes link up to the particular text box which needs to be changed for each individual PDF? Thanks
Each brochure contains 6 pages and the page which I need to alter the text box with the different marketing codes are on the 6th page.
I have just looked at data merge and it seems easy enough for a one page document, but I am unsure how this works when you have a 6 page document and export each document individually rather than all in the same indesign file.
Split the unique page off into it's own document and do the merge with that one page only. Keep the other five pages together in one document. Export the five pages into a 5-page PDF. After you merge the one-page document into 50, export it as a 50-page PDF and use Acrobat Pro to split it into 50 one-page PDFs. Combine one each of the 50 one-page PDFs with a copy of the 5 page PDF and save them out into 50 6-page PDFs. You can do that with Acrobat Pro by inserting a one-page PDF into the five-page PDF.
You might be able to do the combining with a script, but the rest of it won't take any time at all.
The issue with using a data merge function for what I understand what you are doing, is that there cannot be paragraph breaks. This can be resolved by using a marker for breaks in your CSV source (something like double tildes or really any character that is not present in the source) and then removing all breaks. Then you can find/replace those markers in ID and insert the paragraph breaks.
Alternatively, each paragraph can be in its own cell within the same row and then place the markers for the merge in their own paragraph. I would also use tab delimited instead of actual comma seperated values. This is the method I would use in you circumstances...if I am understanding correctly.
Thanks everyone, there is no paragrahs just a code like this CMA0414_W which just the last letter on the end changes.
Eugene, with the book file would that mean I would have to put all 50 documents with all the different marketing codes in the same indesign file. I am unfamiliar with a book file.