cancel
Showing results for 
Search instead for 
Did you mean: 
7 Replies
JavierM-Xerox
Account Deactivated

Re: Adding trim size to Preflight Report

There's no way to increase the value in a loop.

 

However, you do not need to do that to interleave two documents. Here's an example of how to interleave two documents:

http://forum.support.xerox.com/t5/FreeFlow-Core/How-to-interleave-two-documents-together/td-p/200232

barwapk
Valued Member
Valued Member

Re: Adding trim size to Preflight Report

One more thing, how to increase value of a variable "$FFwfJob.documentGroupId$" in every step in the loop when I use it in Insert or Whatermark?

C:\Xerox\FreeFlow\Core\00000000-0000-0000-0000-000000000000\Data\Save Destinations\$FFwfJob.Id$ - $FFwfJob.documentGroupId$.pdf

 

this below don't work:

C:\Xerox\FreeFlow\Core\00000000-0000-0000-0000-000000000000\Data\Save Destinations\$FFwfJob.Id$ - $FFwfJob.documentGroupId$++1.pdf

 

0 Kudos
barwapk
Valued Member
Valued Member

Re: Adding trim size to Preflight Report

Thank You Javier, I have built a proper workflow basing on yours example. I need to do only external to delete temp files. 

0 Kudos
barwapk
Valued Member
Valued Member

Re: Adding trim size to Preflight Report

Hmm, I don't understand. I have MAX file with defined width ("B" column) and height ("C" column). An "A" Column is pointing to a file and I Want a workflow to add a rectangle in sizes of B and C variables on that file.

0 Kudos
JavierM-Xerox
Account Deactivated

Re: Adding trim size to Preflight Report

You are correct. We do not support that within the watermark component.

 

However, you may be able to work around that limitation by using the Resize component which supports use of variables for the dimensions

Screen Shot 2017-01-05 at 10.22.36 AM.png

 

You could do this in a couple of different ways...

 

However, I would consider doing it in this manner:

Screen Shot 2017-01-05 at 10.56.58 AM.png

 

Submit the file you want to process and the files you want to place as a job group. I would use MAX as that will let you more easily define width and height variables for every job in the group. Also, make sure the job file is the first file in the group.

 

Use the route component to separate the job file vs the watermark files

Screen Shot 2017-01-05 at 10.50.37 AM.png

 

You can do this by evaluating the Job Number in Group

Screen Shot 2017-01-05 at 10.50.03 AM.png

 

The watermark files will go to the resize component which can use MAX variables to resize each document to the required width and height. The watermark files are then saved to a known location using variables to ensure a unique value for each file. I would suggest using the following settings:

Screen Shot 2017-01-05 at 10.56.50 AM.png

 

The watermark component can then reference the files using the same variables.

If you are using the default location you can use the following string for the path:

C:\Xerox\FreeFlow\Core\00000000-0000-0000-0000-000000000000\Data\Save Destinations\$FFwfJob.Id$ - 2.pdf

 

Note - You cannot use the $FFwfJob.documentGroupId$ variable to place the watermarks since the value will be different for the job file vs the watermark files. Since the watermark files are fiels 2-n in the group you can change the number at the end of the string to add the rest of the files that you want to place.

One additional consideration - the above will work if you have a fixed number of files that you want to place. If there's variation in the number of files you want to place you will have to create different workflows or route between different watermark components.

 

There's one last thing to consider. You want to ensure that all watermark files resize and save before you attempt to place them in the watermark component. As such, you need to enable the Collect Job Documents option in the watermark component

Screen Shot 2017-01-05 at 10.51.20 AM.png

 

This option will defer execution of the watermark component until all jobs in the group have reached a paused or terminal state in a location in the workflow that precludes them from reaching the component that has the Collect Job Documents option enabled.

 

The workflow itself is actually pretty simple (just 3 additional nodes) but it should do the trick.

 

I would also consider one last thing. Add an external node at the end of the workflow to delete the saved watermark files. You can pass the $FFwfJob.Id$ variable to a script which can then remove files using that variable at the outset (look for the following string: "$FFwfJob.Id$ - ")

 

 

barwapk
Valued Member
Valued Member

Re: Adding trim size to Preflight Report

all correct, but I need variables there to set dimentions by MAX or JDF

0 Kudos
JavierM-Xerox
Account Deactivated

Re: Adding trim size to Preflight Report

Not sure I understand the question.

 

When placing Image or PDF watermarks you have the option to define dimensions for the places image or PDF.

 

The placed watermark will be scaled to those dimensions using one of six different methods:

Screen Shot 2017-01-05 at 10.02.06 AM.png

0 Kudos
barwapk
Valued Member
Valued Member

How to define watermark dimensions using variables

related question, when adding a watermark, it has to be a rectangle (from PDF), then in that node there is no a variable to scale to fit.

0 Kudos