Chapter 6 - How to merge logos and other background image filesPRINTFIL can include logos and other graphical images to your print jobs. This feature is particularly useful to obtain jobs on "Letterheads" or on standard forms ("Invoices", "Order modules" etc.) This files can be previously created using any graphical editor, (Paint Shop Pro, CorelDraw etc.), then you can include them in your print jobs using 2 methods:
In both cases you have to specify at least the name of the graphics background file to load. You can use WMF files (Windows Meta Files), EMF files (Enhanced Meta Files) and BMP files (Bitmaps). If the extension is not specified, WMF will be assumed. If the path is not specified, PRINTFIL will use the path of the ASCII print-job file (see the FileName setting of PRINTFIL.INI). In this way, a UNIX or LINUX application can create the file (for example) /usr/share/printfil/filexx.txt and write only "filexx.bmp" as background image. PRINTFIL on a Windows PC will search both files in the same directory (for example F:\PRINTFIL\FILEXX.*). If the specified BMP, WMF or EMF file is not found, no background will be included. WMF and EMF files are smaller then BMP files, but BMP files are more versatile. We suggest you use BMP files saved with RLE compression to reduce their size. While WMF and EMF files will be enlarged to fit the entire page, BMP files will normally be enlarged to "printable" dimensions (i.e. entire page minus the margins previously set). In addition, only BMP files can be placed anywhere on the sheet by providing parameters after the file name separated by "pipe" ("|" , ascii 124) , according with the following syntax: FileName | Top | Left | Width | Height | FromPage | ToPage The first 4 additional parameters will be in the same units-of-measure set for the page margins. Top and Left are for placing the Top-Left corner of the Bitmap. If they are positive, the margins (are set in the configuration dialog) will be considered, else (if they are negative) the bitmap will be placed taking care only of the sheet's dimensions. For example, if you set the first two parameters to 2.5 | 1.2 and the margins are set to 0.5 Cm. on each side of the sheet, the bitmap will be placed at 3 Cm. from the top margin of the sheet and 1.7 Cm. from the left margin, while if they are set to -2.5 | -1.2 , the bitmap will be placed at 2.5 Cm. from the top margin of the sheet and 1.2 Cm. from the left one, independently by the margins set in the configuration dialog. The first case is useful, for example, to ensure an invoice will be always printed inside the "cells", because either the text or the bitmap will be redimensioned taking care of the margins. The second case can be useful to place a bitmap outside the margins: for example to add a logo at the top of a page which normally would be entirely filled with the text, without changing the source application. Width and Height have a little more sophisticated behavior:
FromPage and ToPage tells Printfil on which page(s) the bitmap has to be printed. They can be set to the same value (for example 1|1 = only the first page on the print job). If they are not set (or they are set to zero), the bitmap will be placed on all the pages. The entire sequence can be repeated different times on the same row to specify different background bitmaps which can be printed on different pages and positions. EXAMPLES:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Copyright © 2010 aSwIt s.r.l., Italy. VAT ID: IT 01305590299 | Printing, Mail, utilities for MS-DOS, Linux and legacy programs |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||