Part II: Markup
 

SwiftConvert can add overlay markup to a file before sending it to a printer.  This allows such functionality as adding barcodes, text overlays, and OMR marks.  In this example we will be overlaying a JPEG file, however SwiftConvert can also overlay text using any provided TTF font.  If you would like more information on this, please refer to the SwiftView Configuration Manual on page 22, or contact tech@swiftview.com.

We have a small JPEG file logo.jpg that is a company logo, and we would like to add this to the top center of the first page of each invoice.  At the end of Part I we had an index file c:\indexfile.txt that told us that pages 1,4,6, and 10 contain the first pages.  With this knowledge we can now tell SwiftConvert to add our company logo to just these pages.

Markup is added using the markup commands starting on page 13 of the ICS Reference Manual.  There are three basic steps when adding markup:

1) Set Markup Attributes

In this example we will not need to change any of the markup attributes defaults, however take a look at the available attributes under the “markup attributes” command in the manual.  Attribute commands should be passed before the original file is opened, as well as before the markup command is passed.

2) Specify Markup File and Location

To specify the markup file to load, the page to load on, and the location on the page to add the markup, use this command:

onpage 1 markup load filename c:\logo.jpg rxloc 3.5 ryloc .25

This command places the markup file c:\logo.jpg at the location 3.5, .25 .  You will need to customize your coordinates for your markup depending on where you want them to appear on the file.  The above command only specifies page 1 to have the markup though, so in order for it to appear on the first page of each document we must change the command to:

onpage 1,4,6,10 markup load filename c:\logo.jpg rxloc 3.5 ryloc .25

3) Apply Markup

Now let's apply the markup and view the file by running the following commands on the command line:

sview –ics”ldoc c:\invoice.pcl| onpage 1,4,6,10 markup load filename c:\logo.jpg rxloc 3.5 ryloc .25”

Or view the file markup.zhp.

Notice that the file was opened with an ldoc before the markup was applied.  This is important: loading the file after the markup command may cause inconsistency.

The result is invoice.pcl with our company logo applied at the top center of the first page of each invoice.   In the next example we will show the additional commands to send this to the printer.

Part III: Print

SwiftView®, SwiftConvert, SwiftStamp, SwiftExtract, SwiftReprint, SwiftPublish, and LoanDocs®, are trademarks of eLynx, Ltd.
SwiftView, a division of eLynx, 15605 SW 72nd Ave Portland, OR 97224 USA
800-304-5941 or 971-223-2600
  ©2008 eLynx, Ltd.