Ruskin Dantra wrote:
> Hi All,
> I am trying to display a barcode but with different font sizes.  I have 
> set the font on the barcode object to null as I don't want any text to 
> appear although the actual size of the barcode should be changing as I 
> am setting the font size on the pdfcontentbyte.  Is that the right way 
> of setting the font size of the barcode as nothing to seems to change, 
> all the barcodes come out looking the same.
>  
> Is there another "right" way of doing this?

Have you consulted the Javadoc API or the book?
http://itext.ugent.be/library/api/com/lowagie/text/pdf/Barcode.html
or Appendix B in the book (Section B.3 Barcode properties).

I think you're looking for setX(), setBarHeight() and setInkSpreading();

Table B.3 lists rhe default values for every type of
barcode (for instance: the default height is not the
same for EAN as for POSTNET).

br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to