groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Introduction


From: Deri James
Subject: Re: [Groff] Introduction
Date: Mon, 24 Oct 2005 23:13:32 +0100
User-agent: KMail/1.8.2

On Monday 24 Oct 2005 21:40, you wrote:
> Deri,
>
> Are the barcodes generated by troff?  (A special font?)
>
> Or are they images that are generated, and then something like  .PSPIC 
> glues them into the documents?

I generate the bar code directly, using interleaved 2of5. (GPLed font here:- 
<http://user.it.uu.se/~jan/barfonts/>). This is a "numbers only" barcode 
which holds 2 numbers per character. The author of the font includes a perl 
script to calculate these character pairs which I converted to a troff macro.

Each print bureau has different  requirements for "driving" their finishing 
equipment, so this barcode is specific to the bureau used. In this case the 
bureau required the barcode to be in a specific position along the long edge 
of an A4 sheet, whilst the rest of the report is portrait, so I used some 
rotation macros (provided on this list some time ago).

I attach a small example, you would need to install the font above to run it. 
(The example is a bit "quirky" since it is generated by the system described 
in my previous post with superfluous sections removed). Run it with:-

groff BCex.trf > BCex.ps

then use a PS viewer to view result. If you don't see a barcode check that you 
have added "Codei25JK           Codei25JK.pfa" to your 'devps/download' file.

Hope this helps.

Deri

Attachment: BCex.trf
Description: Troff document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]