Re: [Barcode4j-users] RE: barcode generation with FOP

Jeremias Maerki <[email protected]> Fri, 23 Apr 2004 16:28:16 +0200
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Hmm, strange that FOP didn't find the FOP extension then. Maybe some
odd classloader effect. What's your environment? Tomcat or some big J2EE
server? This shouldn't happen from the command-line. Anyway, I'm glad
you got the Xalan extension to work.

Code128 doesn't support the wide-factor attribute. Code128 has 4
different widths and their relative widths are prescribed by the
specification. What you can change however is the module-width of the
narrow bar. The bar width of the broader bars is then defined by
multiplying the module width by 2, 3 or 4. See [1] to find out what
attributes are supported for Code 128. If you really need a wide-factor
it should be quite simple to add but I fear that the generated barcodes
wouldn't be 100% conformant to the spec and might produce read errors on
certain barcode readers.

It doesn't really matter if you're working with the FOP extension (your
earlier example) or with the Xalan extension (your new example). I think
you're doing fine.

[1] http://barcode4j.krysalis.org/barcode-xml.html#Code+128

On 23.04.2004 15:22:09 O'Neill, Ciaran wrote:
> I have the FOP extension in my classpath and I have gotten it to work with
> the following code (i'm using version krysalis-barcode-0.9 BTW).
> 
> I am, however having trouble getting some of the settings working - my
> wide-factor below doesn't seem to do anything.  I want my barcode to be
> wider (changing the height works fine), and I also get errors when I turn
> the human-readable off.
> 
> Have you got any suggestions please?  Is this the way I should be working
> with it, or should I be using the FOP example I provided in the previous
> mail?
> 
> Would it help if I attached my source XML and XSL?


Jeremias Maerki



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297