Hi,
 
Can we create a PDF with tree structured content using SimpletextTreeNode using iText ? If so, plz let me know if you have any example how to use the same.
How it will differ from List ?
I could not find any guide that describe the same.
 
 I tried it as follows and I could not be able to proceed further.
========================================
   document.open();
 
   Paragraph p1 = new Paragraph("p1");
   Paragraph p11 = new Paragraph("p11");
   Paragraph p12 = new Paragraph("p12");
   Paragraph p121 = new Paragraph("p121");
   SimpletextTreeNode tree1 = new SimpletextTreeNode(p1);
   SimpletextTreeNode tree11 = new SimpletextTreeNode(p11);
   SimpletextTreeNode tree12 = new SimpletextTreeNode(p12);
   SimpletextTreeNode tree121 = new SimpletextTreeNode(p121);
  
   tree1.add(tree11);tree1.add(tree12);
   tree12.add(tree121); 
========================================
 
How to add the root node (tree1) to the document ? Any casting needed?
 
Thanks
UmaShanker. S
 
  • [iText-questions] N... Umashanker Sivagurunathan -X (usivagur - HCL at Cisco)

Reply via email to