splitting output using page breaks

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?

On what field are you doing the grouping on the document set level?

What is the output name you wish to have once you have done the PageBreak grouping?

I’m grouping on 2 fields, e.g.

${set.metadata.orig_fname}${set.metadata.Docname}.pdf

both fields are filled from datamapper. Additionally I want to add page break Grouping (1-12 pages, >12 pages so output naming should be:

${set.metadata.orig_fname}${set.metadata.Docname}{set.metadata.pagebreakgroup}.pdf

The you would use: ${set.count.pages}

Look at the following link

${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.

Let’s say you have defined 3 pageBreak:

– 1-12 pages

– 13-26 pages

– 27-- x number…

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.

hamelj,

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.

Is it a 1 record generating 1 output page?

Can 1 record be made out of more than 1 incoming datapage?

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.

hamelj,

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.