Hi - I am wondering if QR barcode support might be possible with iText?
We'd in particular like to use in conjunction with the xmf add-on to pdftk
developed by "chicks".  Thanks.  Mike Smith [EMAIL PROTECTED] +1
(902) 405-4756.
 
***
 
Barcodes:

 

iText also comes with a number of classes that generate barcodes. The
following types are supported: 

*       Barcode39:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/Barcode39.html>  code 39 and
code 39 extended
*       Barcode128:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/Barcode128.html>  

*       CODE128 - plain barcode 128.
*       CODE128_UCC - support for UCC/EAN-128 with a full list of AI.
*       CODE128_RAW - raw mode. The code attribute has the actual codes from
0 to 105 followed by '\uffff' and the human readable text.

*       BarcodeEAN:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeEAN.html>  EAN13,
EAN8, UPCA, UPCE, and EAN with supplemental 5, EAN with supplemental 5, EAN
with supplemental 2
*       BarcodeEANSUPP:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeEANSUPP.html>  takes
2 barcodes, an EAN/UPC and a supplemental
*       BarcodeInter25:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeInter25.html>
interleaved 2 of 5
*       BarcodePostnet:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodePostnet.html>
postnet and planet
*       BarcodePDF417:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodePDF417.html>  the 2D
barcode PDF417
*       BarcodeCodabar:
<http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeCodabar.html>
codabar

This is an code example to generate an EAN-barcode with value 9780201615883:


 

PdfContentByte cb = writer.getDirectContent();
BarcodeEAN codeEAN = new BarcodeEAN();
codeEAN.setCodeType(codeEAN.EAN13);
codeEAN.setCode("9780201615883");
Image imageEAN = codeEAN.createImageWithBarcode(cb, null, null);
document.add(new Phrase(new Chunk(imageEAN, 0, 0)));

 

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to