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:
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
You could do this in a couple of different ways...
However, I would consider doing it in this manner:
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
You can do this by evaluating the Job Number in Group
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:
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
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$ - ")
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.
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
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: