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
BCex.trf
Description: Troff document
_______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff