---------- Forwarded message ----------
From: Adrian Head <adrianhead1
...@googlemail.com>
Date: Sun, Mar 9, 2008 at 3:10 AM
Subject: My AssetLabelPageScript_v0.2a.ps for inclusion in the scripts
section of the postscriptbarcode repository
To: Terry Burton <t...@terryburton.co.uk>
Terry,
Thanks for your help.
Please find attached version 0.2a of my asset label script which you
can put in the example scripts section of the postscriptbarcode
repository.
As I'm still new to postscript - this is my first attempt. I've got a
couple of unknowns resulting in some strange behaviour that I intent
to work out. For example - I have to pop after a for loop otherwise
the stack gets messed up. I also expect that there are better ways to
do things other than what I've attempted to do. Therefore, you might
like to vet the script to see if I've done anything silly - but this
script "works for me" as it is. I've still got a couple of things to
implement like the Code 128 C for the numerical value for better
barcode resiliency. The script kinda works with KGhostscript but only
shows the first page. If the .ps is sent to the printer or converted
to .pdf all pages print.
From the script:
%%Title: This script prints consecutive pages of auto-incrementing asset labels
%%Creator: Adrian Head - adrianhead1977 [at] { gogglemail.com, yahoo.co.uk}
% This script prints consecutive pages of auto-incrementing asset labels
% Features of this script are:
% * Completely self contained script - nothing else needed
% * Prints aset label including text, logo and barcode
% * Can toggle label outline (may be used for proofing/debugging)
% * Prints Labels in 4x10 grid suitable for Avery sheets listed below
% * Prints multi-pages at once and includes page numbering
% * Asset numbers are auto-incrementing - across pages
% * The barcode is Code 128 B allowing alpha-numeric values
% * Barcode is made up of 4 char prefix + 10 digit auto-inc number
% * When barcode num part is Code 128 B can print assetnum as dec or hex
% * Script version stamped on labels and page for version control
% Howto Use:
% Modify assetnum and numpage below to suit requirments.
% Note: make sure the assetnum is one greater than last label number from
% previous printjob or doesn't overlap with previous numbers!
% Then pipe the modified script to the printer:
% On Unix-like system you can use
% lpr -S computer_name -P queuename AssetLabelPageScript.ps
% On Windows can send the file to a printer as:
% copy /b AssetLabelPageScript.ps lpr1
% Currently this script is written to support the following labels only:
% Avery L7654 White Mini Labels 40/sheet 45.7x21.2mm
% Avery L6140 Triple Bond 40/sheet 45.7x21.2mm
% Avery L6145 No Peel-Tamper Proof 40/sheet 45.7x21.2mm
% If label size needs to change - then exchange LabelOutlineForm to suit as
% well as look for "Specific to label size/type" comments and change the
% preceding command values. Trial and error will be required.
A bit of a wish list - it would be great if the script supported
various label sizes/types. Maybe one day I'll work out the best way -
or someone might help out. Even postscript pointers and tips would be
great.
It is an exercise for the reader to acquire and put their logo into
the LabelLogoForm. ;-)
Hope people find this useful.
Thanks
Heady
PS: (Terry - if you think it suitable you may forward this to the list)