IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#33274 - 09/13/10 08:07 AM storing amount of pages in a jobinfo
vlaardim Offline
OL Newbie

Registered: 03/12/10
Posts: 20
Loc: The Netherlands
Hi,

We receive a spooljob containing a lot of 1, 2 and 3 pages invoices.
Afterwards I must create a PDF with all 1 page Invoices, all 2 page invoices and all 3 page invoices.
I can split the spoolfile before it reaches watch module image. I would like the number of pages to be in the jobname for sorting out and concatenate again. How can I set the number of pages to the jobinfo?

Regards Marcel

Top
#33277 - 09/13/10 09:37 AM Re: storing amount of pages in a jobinfo [Re: vlaardim]
Claude D
Unregistered


Hi Marcel:

You could use the metadata feature to determine the number of invoices in the spool file and the number of pages per invoice.

You can set up a document-level metadata field in the PlanetPress document, lets say when the text "Page 1 " appears at the top of the page, or when the invoice number changes.

In your PlanetPress Workflow process, use the Create meta action and apply your document. This action will produce a metadata file that contains all the necessary informaton to process the job. The other metadata tools can be used to filter out the pages that meet the criteria.

Some examples of this can be found on the OLLearn website.

Hope this helps,

Top
#33278 - 09/13/10 09:41 AM Re: storing amount of pages in a jobinfo [Re: vlaardim]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
vlaardim,

You could do it using Metadata. Before you send the data to Image, you can add a "Create Metadata" action to create metadata for the job. This is like data on the job, such as total number of pages, datapages, etc...

Once you have it, if you want to assign this value to a job info, you can use Set Job Info, and use the following syntax to get the value in a job info:
GetMeta(SelectedPageCount[0], 11, Job.Group[0].Document[0])

This will give you the number of pages in the document. After that, you can make conditional branches on that job info to organize the jobs the way you want.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top
#33282 - 09/13/10 11:21 AM Re: storing amount of pages in a jobinfo [Re: Raphael Lalonde Lefebvre]
vlaardim Offline
OL Newbie

Registered: 03/12/10
Posts: 20
Loc: The Netherlands
Thanks Guys this worked!

Top