Hi , Again regarding placing of text. I use barcode fonts to genrate the barcode. I get a encoded string and apply the barcode font for the encoded string, but while applying the Y coordinate is not correctly aligned. Do i need to set any property.
I have used both the methods, one given by you and next is using pdfContentByte.BeginText() pdfContentByte.SetFontAndSize(bf1, 28.3) pdfContentByte.SetTextMatrix(arr(0), arr(1)) pdfContentByte.ShowText("!2.3.-f"") pdfContentByte.Stroke() Could you please help in fixing this issue, Thanks & Regards Karthik B --- On Thu, 19/5/11, 1T3XT BVBA <i...@1t3xt.info> wrote: > From: 1T3XT BVBA <i...@1t3xt.info> > Subject: Re: [iText-questions] Place text in speacified x y coordinate > To: itext-questions@lists.sourceforge.net > Date: Thursday, 19 May, 2011, 9:05 PM > Op 19/05/2011 17:09, karthik B > schreef: > > Hi, > > I tried with the rectangle. It is perfectly matching > with the inedisgn coordinates and my calculation to render. > OK, now that you're sure about the coordinates of the > rectangle, use > those coordinates in combination with ColumnText. > > ColumnText ct = new ColumnText(writer.getDirectContent()); > ct.setSimpleColumn(x1, y1, x2, y2); > ct.addText(new Phrase("Sample")); > ct.go(); > > Or something like that, I wrote this from memory, you > should check > chapter 3 of the book for the correct syntax. > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the > reach of its > next-generation tools to help Windows* and Linux* C/C++ and > Fortran > developers boost performance applications - including > clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > iText(R) is a registered trademark of 1T3XT BVBA. > Many questions posted to this list can (and will) be > answered with a reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: > http://itextpdf.com/themes/keywords.php > ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php