when using a job creation preset, grouping/splitting is done by document set grouping fields using the set.metadata.fieldnames in the output preset.
But what if I want to add Page Break Grouping (document.set level) and have the output (PDF) split by Page Ranges. Is there a output variable for the output preset?
${set.count.pages} works well, but it would be nice to name the resulting groups afterwards for further processing.
currently I get the PDF named
incomingname_myvar_12.pdf (if the first pagebreak group matched, resulting PDF has 12 pages)
incomingname_myvar_108.pdf (if the second pagebreak group matched, resulting pdf has 108 pages)
but if I want to process the output in a later step the number itself cannot be used since I don’t know which one is the first or second group.
You PDFs are now all created into a folder. One of them is “incomingname_myvar_12.pdf”, then you know it is from the first group. Another one is “incomingname_myvar_108.pdf”, then you know it is from the third group.
Now if you need to handle them in different way based on which group they are part of, you will need to write a conditionnal script which will extract the page number from the PDF name and act accordingly.
If the output of the first group has 120 pages it will be named incomingname_myvar_120.pdf, so I will not know if it’s the first group. It might happen that the second group (docs with more than 12 pages) has less pages in sum.
yes, 1 record generating several output pages. Incoming data is enriched according to its contents, so output varies for every record. AND another issue:
when using $set.count.pages: if one group has the same amount of pages as the other there’ll be an error, 'cause both filenames will be the same.
Actually, since you are naming your group as this: “var1_var2_nbOfPages.pdf” if they have all three value the same, the would be in the same PDF…no?
Still working on a way to get you what you want but without having your data and Template, it is a little hard to figure out all that is involved…is your data sensitive? Can you upload both a package of your form and a good data sample here? If it is sensitive, you can password proterct it and msg me the pasword in private.
yes, you’re right it might happen that all 3 values are the same and that would spawn an error.
data isn’t very sensitive but since it’s content just works in conjunction with a sql lookup, packaging wouldn’t do the job.
Easiest thing would be to adress the Page-Grouping Range Name (in job creation option). There you’ve the possibility to individually name the page groups but afterwards that info isn’t accessible.
Actually, there is no variable as of now that contains the information you are asking to rename your PDF with the page range. If your page range were for single range I.E. 1 pagers, 2 pagers and so on, we could give you a way to achieve this but with page with greater range, it is much more complicated and require scripts into Workflow.
If you have OLCare, open a technical support call so we can look into this more easily. You can do so at 1-866-348-5863 or through our WebSupport page.