You don't have to position it absolutely. Call Barcode.createImageWithBarcode() as use it as any other image.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Przemek Klein > Sent: Friday, March 11, 2005 10:37 AM > To: [email protected] > Subject: [iText-questions] iText - placing barcode > > Hi All, > > I have a question connected with iText PDF library. I want to > add barcode in generated document. I know how to generate it > properly, and I know that I have to position it absolutely. > But how to guess proper coordinates? Below is a snippet of my code: > > // my pdf document > Document pdfDoc = new Document(); > [...] > // add some table > PdfPTable t1 = new PdfPTable(3); > // add some chunk > pdfDoc.add(new Chunk("sample chunk")); > // few other pdf elements > [...] > > And then I want to put my barcode? What are current positions > of generated elements? > > TIA, > Przemek > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
