SDSI
Technology Tips
UnForm
Image Conversion and Conditional Image
Printing
Image conversion on the fly using Image
Magick or Image Alchemy.
When an image is sent to a printer or PDF file, the format must be natively
supported by that environment. When printing images, UnForm examines the
file extension to determine if a conversion is required. If so, and if the
UnForm server is aware of an Image Magick or Image Alchemy program
(configured in the uf60d.ini file), then the non-native image can be
converted and scaled as required. The extensions recognized as native laser
images are pcl, prn, and rtl. For PDF output, UnForm requires a pdf
extension. Note that when an image name has a native laser extension, but a
pdf image is required, UnForm will automatically attempt to use a file with
the same name but a pdf extension. Note:
Image Magick is freeware.
Conditional printing of images
An image command can use an
expression to determine what image file to print at any given time. If the
result of that expression is null, then no image will print. This feature
can be utilized to control the printing of images based on conditions.
Below are two examples, one that prints a different logo depending on a
company code found on each page, the other prints a signature on a check
only when the check is over a specified amount.
Example 1:
prepage {
# use different image for each company
compno$=get(11,10,1)
logo$=""
if compno$="1" then logo$="logo1.bmp"
if compno$="Z" then logo$="logoz.jpg"
}
image 1,1,20,10,{logo$}
Example 2:
prepage {
# manual signature required if amount > then $10,000
sign$="signature.pcl"
# load check total
total=cnum(trim(get(71,62,9)))
if total<10000 then sign$=""
}
image
60,25.5,20,4,{sign$}