ennidhi wrote: > I am developing a pdf with mutiple pages. Whenever i use ct.addelement.. > method in the first page, I could not able to print anything using > cb(pdfcontent byte) or ct.addtext after doing document.newPage... i.e. in > the new page.
Read the documentation! You've forgotten to reset the Y line value. > But document.add is working. It seems composite mode does not > work for mutiple pages in the PDF file. You obviously didn't read the documentation. > cb.showtextallignment method is printing the string in the one line even if > it very big. i.e. 3 to 4 lines of text since this method only accepts string > as the parameter. Of course, that's documented. You obviously didn't read the documentation. > Is there anyway to pass phrases or paras to the cb object. Yes, ColumnText has a showTextAligned method too. That's also in the documentation. Of course: it also prints everything on one line. (As documented.) > Now, I am using text mode only in all the pages i.e. ct.addtext... cb.stroke > for lining which facilitates to use text mode in the other pages. > > Is it the behaviour of the composite mode that does not allow me to print > anything in the other pages after using the composite mode. Is it behaviour of you NOT to read the documentation? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/