I’ve extracted data from 1000 PDFs and put this data into a csv.
In the csv I have the file name, the address fields and a reference number. I have mailsorted this data to generate some mailsort info. What I want to do now is get this mailsort info and generate a mailmark barcode to put back into the correct PDF.
I am aware you can generate the mailmark barcode using the output creation. I’m just not sure how to put the correct information back into the relevant PDF.
Based on the information you already exchanged with my colleague Stephen, you could, once you have extracted and sorted your CSV data, do the following:
Set your CSV as the data input for a Datamapper
Dynamically call each PDF (1 per record) and set it to be the background of your Section (see example of Control Script below)
var activeSection = merge.template.contexts.PRINT.sections['Section 1'];
activeSection.background.source = BackgroundResource.RESOURCE_PDF;
var resourceUrl = 'file:///C:/Untitled.pdf';//This is where you set your dynamic path to your PDF
activeSection.background.url = resourceUrl;
In your Output Preset
Set your barcode
Make sure you check the option Pass-through PDF resources so your PDF aren’t “rebuilded”.