You'll have to figure out how to put checkboxes in your document using direct content. I personally have not done this although I know a couple people on the mailing list have done it or at least tried.
There is no way to "parse" through a document using iText to figure out how to replace some value. This is not developed yet. I have recently updated the current source in SVN with the ability to use PdfTable and nest tables. Here's an example: public static void main(String[] args) { try { Document document = new Document(); RtfWriter2 writer = RtfWriter2.getInstance(document, new FileOutputStream( "TestPdfPTable.rtf")); PdfWriter pwriter = PdfWriter.getInstance(document, new FileOutputStream( "TestPdfPTable.pdf")); document.open(); writer.getDocumentSettings().setOutputDebugLineBreaks(true); PdfPTable t1 = new PdfPTable(3); PdfPTable t2 = new PdfPTable(2); t2.addCell("Cell t2.c1"); t2.addCell("Cell t2.c2"); t2.completeRow(); t1.addCell(t2); t1.addCell("Cell 1"); t1.addCell("Cell 2"); t1.completeRow(); t1.addCell("R2C1"); t1.addCell("R2C2"); t1.completeRow(); t1.addCell("R3C1"); t1.completeRow(); document.add(t1); document.close(); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (DocumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } } Howard Shank ----- Original Message ---- From: soumyanil <[EMAIL PROTECTED]> To: itext-questions@lists.sourceforge.net Sent: Friday, August 1, 2008 12:56:09 AM Subject: Re: [iText-questions] How to set data in rtf document? I don't need to add or remove cells i just need to place text in cells but my problem is drawing checkboxes .I have done it with PDF using acroforms,Now I need it to do with rtf.I can build rtf forms with iText w/O checkboxes and even it is not exact as given.I have attached an file of sample form.Please refer to it. There is another question "can we add a table within another cell of a table in rtf"? Howard Shank wrote: > > iText will not do that, at least not the way you probably want to do it. > > Do you need to add or remove cells or just place text in cells? > > If you need to do any images or manipulation other than text you are > probably better off just building the entire document with iText if you > can. > > Howard Shank > > > ----- Original Message ---- > From: soumyanil <[EMAIL PROTECTED]> > To: itext-questions@lists.sourceforge.net > Sent: Tuesday, July 29, 2008 1:21:13 AM > Subject: [iText-questions] How to set data in rtf document? > > > Hi friends, > I have a rtf document can anyone suggest how to set data in cells of an > rtf > document?Is there any way? > Thanks in advance.. > Regards , > Soumyanil > -- > View this message in context: > http://www.nabble.com/How-to-set-data-in-rtf-document--tp18705539p18705539.html > Sent from the iText - General mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > 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 > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > > > > > > > ------------------------------------------------------------------------- > 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 > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > > http://www.nabble.com/file/p18768236/CORPORATE%2Beng.rtf CORPORATE+eng.rtf -- View this message in context: http://www.nabble.com/How-to-set-data-in-rtf-document--tp18705539p18768236.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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 iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php ------------------------------------------------------------------------- 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 iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php