![]() ![]() Message += ", " + this.numPages + " pages, " + csvData.length() + " rows)." Ī colleague of mine ended up creating a custom python script. Var message = "The number of pages per row is not an integer (" + pagesPerRecord I've not tested this, but it looks straightforward (other than the parsing of the CSV, which came from someone on stackoverflow and I didn't look over in detail).įor the record, here is the script: var CSV = function (data, delimiter) There is user input for text to prefix and/or suffix the output file names. It counts the total number of pages in the PDF and divides by the total number of records in the CSV in order to calculate the number of pages per individual PDF, then iterates through the document, extracting pages as it goes. It takes the CSV file as an input (said CSV must have a column named "filename" containing the individual name for the extracted PDF. The workflow this script is set up for is the Data Merge > Export PDF, which as you noted spits out a single, massive PDF. What’s the best path to automate this via a combination of Data Merge, Scripts, Actions as necessary? Old scripts, 404 pages, certain functionality missing, and no step by step walkthrough to figure out how to use said script.įound this script but not sure how to set it up + use it. I’ve searched around on the forums but it has been a bear to figure it out.
0 Comments
Leave a Reply. |