| |
Creating Stationery
A print file created by
an application is often intended to be overlayed on printed stationery.
It is possible to emulate this in Fax2Send by creating a full page graphic
with the following steps:
- Create your stationery
in a suitable application such as a word processor or design application.
You will almost certainly have to change your document a few times in
order to get the text to line up.
- Print your document
in HP LaserJet (PCL) format to a file.
- Transfer the file
to a Fax2Send server.
- Run a script similar
to the following to convert the PRN file to a format suitable for use
as a graphic:
#!/bin/sh
# Run me as root
echo "Enter path of PRN file"
read prnfile
if test ! -f $prnfile
then
echo "Cannot access $prnfile!"
exit
fi
echo "Enter name of graphic to create"
read logofile
# Make sure the graphic will land in the macro directory
logofile=/usr/lib/fax2send/macro/`basename $logofile`
# Queue a preview request and get the id number
id=`fax2 -RFppreview $prnfile`
#Wait for the image to be created
tiffile=/var/spool/fax2send/outbound/image/$id.tif
while test ! -f $tiffile
do
echo "Waiting for image to be created"
sleep 1
done
echo "Image Ready to Convert to Graphic"
# Convert the image to graphical format.
/usr/lib/fax2send/bin/tiffread -s1 -e1 -ohp-HT-logo $tiffile -f$logofile
chown fax2 $logofile
|