I did the following and it seemed to help (made the barcodes thinner):
code128.setX(.5f);
-regards
Kevin
"Paulo Soares"
<[EMAIL PROTECTED]
.pt> To
Sent by: "Post all your questions about
itext-questions-b iText here"
[EMAIL PROTECTED] <[EMAIL PROTECTED]
ceforge.net net>
cc
08/18/2006 04:45 Subject
PM Re: [iText-questions] most amout of
data in the smallest amout of
space(width) Barcodes
Please respond to
Post all your
questions about
iText here
<itext-questions@
lists.sourceforge
.net>
Without going to 2D codes the code 128 is the more efficient.
Paulo
----- Original Message -----
From: "Kevin Buhr" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 18, 2006 9:12 PM
Subject: [iText-questions] most amout of data in the smallest amout of
space(width) Barcodes
>
> Hello there,
>
> I am using IText to generate Barcodes. Was wondering what was the best
way
> (which type of Barcode, fonts, etc.) to get the most amout of data in the
> smallest amout of space (width)?
>
> Am using the following code and we are making labels with barcodes- 3
> barcodes per row and 10 rows per page. Our values to put in the bar code
> could get up to 30 characters. Not sure if that is doable, but would like
> to find a way to maximize the amount of information that could fit in a
> bar
> code. Here is the code creating the bar code:
>
> private Image createBarcode( String value )
> {
> //System.out.println("\nentering Labels3x10.createBarcode
value
> = " + value + "\n");
> PdfContentByte cb = getPdfWriter().getDirectContent();
> Barcode128 code128 = new Barcode128();
> code128.setCode( value );
> code128.setCodeType( Barcode.CODE128 );
> //code128.setBarHeight( 36 );
> code128.setBarHeight( 24 ); //ktb 05032006
> code128.setSize( 1 );
>
> Color barColor = new Color( 0, 0, 0 );
> Color txtColor = new Color( 255, 255, 255 );
> return code128.createImageWithBarcode( cb, barColor, txtColor
> );
> }
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> This e-mail message, including attachments, may contain confidential,
> proprietary, or export controlled information. Any unauthorized
> disclosure, distribution, or other use is prohibited, unless expressly
> authorized. If you receive this e-mail in error, please notify the
sender,
> and delete all copies of the original message from your systems.
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
This e-mail message, including attachments, may contain confidential,
proprietary, or export controlled information. Any unauthorized disclosure,
distribution, or other use is prohibited, unless expressly authorized. If you
receive this e-mail in error, please notify the sender, and delete all copies
of the original message from your systems.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions