> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Rick Roen
> Sent: Thursday, August 07, 2008 5:39 PM
> To: 'Post all your questions about iText here'
> Subject: [iText-questions] Barcode image UPCA
>
> I have the following iTextSharp (v 4.1.1.0) VB code:
>
>
>
> Dim bc As BarcodeEAN = New BarcodeEAN()
>
> bc.CodeType = Barcode.UPCA
>
> bc.Code = "878373001012"
>
> barUPC = bc.CreateDrawingImage(Color.Black, Color.White)
>
> barUPC.Save("c:\temp\_barcode.png",
> System.Drawing.Imaging.ImageFormat.Png)
>
>
>
> I get this image:
>
>
>
> _barcode.png
>
>
>
>
>
> I don't see a way to generate this barcode with the code text
> like in the book on pg. 604 figure B-2.
>
As a System.Drawing.Image you can't. The example is for a PDF image, that's
actually in this case a template.
>
>
> I saved this code to a file for sample purposes, but in
> production I will add the image to another bmp and then place
> the larger image on a pdf. For this reason I don't think I
> can use CreateImageWithBarcode, which I think will put the
> numbers under the code.
>
You should create a PDF image and place it over the other BMP in the PDF. You
don't need to have a single BMP.
Paulo
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php