Re: [iText-questions] Problem in nesting of lists in RTF?

2009-11-16 Thread Chris von See
Well, that wasn't quite the answer I had hoped for :/

Will iText RTF support emerge from the incubator at some point in the  
future? or is this a death by incubation scenario?

Chris


On Nov 16, 2009, at 2:37 PM, mister bean wrote:


 iText is about to move the RTF functionality to an incubator and  
 deprecate
 this functionality. Unless someone can provide the answer on this  
 list (and
 even if they do), you might want to consider other options for RTF
 generation.

 Best wishes,

 ---mr. bean

 re 



 Chris von See wrote:

 I think I've found a problem with nesting of lists in RTF.  Running
 the program below with PDF output produces nested lists three levels
 deep with all sub-lists nested properly.  However, if you run the  
 same
 code with RTF output the third level of lists does not show as being
 indented, although the numbering seems correct.  Is there something
 that needs to be done differently for RTF?

 Thanks,
 Chris

 Test program:

 import java.io.FileOutputStream;
 import java.io.IOException;

 import com.lowagie.text.Chunk;
 import com.lowagie.text.Document;
 import com.lowagie.text.DocumentException;
 import com.lowagie.text.List;
 import com.lowagie.text.ListItem;
 import com.lowagie.text.pdf.PdfWriter;
 import com.lowagie.text.rtf.RtfWriter2;


 public class TestList {

 public static void main(String[] args) throws IOException,
 DocumentException {
 Document document = new Document();
 RtfWriter2.getInstance(document, new
 FileOutputStream(testlist.rtf));
 //PdfWriter.getInstance(document, new
 FileOutputStream(testlist.pdf));
 document.open();
 List list1 = new List(List.ALPHABETICAL, 20);
 list1.add(new ListItem(new Chunk(Level 1 - Item 1)));
 list1.add(new ListItem(new Chunk(Level 1 - Item 2)));
 list1.add(new ListItem(new Chunk(Level 1 - Item 3)));

 List list2 = new List(List.ORDERED, 20);
 list2.add(new ListItem(new Chunk(Level 2 - Item 1)));
 list2.add(new ListItem(new Chunk(Level 2 - Item 2)));

 List list3 = new List(List.ORDERED, 20);
 list3.add(new ListItem(new Chunk(Level 3 - Item 1)));
 list3.add(new ListItem(new Chunk(Level 3 - Item 2)));
 list3.add(new ListItem(new Chunk(Level 3 - Item 3)));
 list3.add(new ListItem(new Chunk(Level 3 - Item 4)));
 list2.add(list3);

 //list2.add(new ListItem(new Chunk(Level 2 - Item 3)));
 list1.add(list2);

 list1.add(new ListItem(new Chunk(Level 1 - Item 4)));

 document.add(list1);
 document.close();
 }
 }

 PDF output:



 RTF output:





 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
 trial. Simplify your report design, integration and deployment -  
 and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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/


 -- 
 View this message in context: 
 http://old.nabble.com/Problem-in-nesting-of-lists-in-RTF--tp26379399p26379918.html
 Sent from the iText - General mailing list archive at Nabble.com.


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
 30-Day
 trial. Simplify your report design, integration and deployment - and  
 focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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/


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www

Re: [iText-questions] Problem in nesting of lists in RTF?

2009-11-16 Thread Chris von See
Thanks for the information.  I'm a newbie to the list and hadn't seen  
Bruno's earlier post.

Chris von See
Senior Geek
TechAdapt, Inc.
http://www.techadapt.com
ch...@techadapt.com

Save trees.  Print only when necessary.





On Nov 16, 2009, at 6:42 PM, mister bean wrote:


 Per Bruno's earlier post to this list, iText is moving to PDF-only for
 output. The incubator is for related projects that developers might  
 want to
 use in conjunction with iText. Whether that means they're dead or  
 alive will
 depend, I am sure, on the authors of the various packages.

 If Howard Shenk is reading the list, he might be able to tell you/us
 directly what involvement he anticipates regarding maintenance and
 development of the RTF package.

 Regards,

 ---mr. bean



 Chris von See wrote:

 Well, that wasn't quite the answer I had hoped for :/

 Will iText RTF support emerge from the incubator at some point in the
 future? or is this a death by incubation scenario?

 Chris


 On Nov 16, 2009, at 2:37 PM, mister bean wrote:


 iText is about to move the RTF functionality to an incubator and
 deprecate
 this functionality. Unless someone can provide the answer on this
 list (and
 even if they do), you might want to consider other options for RTF
 generation.

 Best wishes,

 ---mr. bean

 re 



 Chris von See wrote:

 I think I've found a problem with nesting of lists in RTF.  Running
 the program below with PDF output produces nested lists three  
 levels
 deep with all sub-lists nested properly.  However, if you run the
 same
 code with RTF output the third level of lists does not show as  
 being
 indented, although the numbering seems correct.  Is there something
 that needs to be done differently for RTF?

 Thanks,
 Chris

 Test program:

 import java.io.FileOutputStream;
 import java.io.IOException;

 import com.lowagie.text.Chunk;
 import com.lowagie.text.Document;
 import com.lowagie.text.DocumentException;
 import com.lowagie.text.List;
 import com.lowagie.text.ListItem;
 import com.lowagie.text.pdf.PdfWriter;
 import com.lowagie.text.rtf.RtfWriter2;


 public class TestList {

public static void main(String[] args) throws IOException,
 DocumentException {
Document document = new Document();
RtfWriter2.getInstance(document, new
 FileOutputStream(testlist.rtf));
 //PdfWriter.getInstance(document, new
 FileOutputStream(testlist.pdf));
document.open();
List list1 = new List(List.ALPHABETICAL, 20);
list1.add(new ListItem(new Chunk(Level 1 - Item 1)));
list1.add(new ListItem(new Chunk(Level 1 - Item 2)));
list1.add(new ListItem(new Chunk(Level 1 - Item 3)));

List list2 = new List(List.ORDERED, 20);
list2.add(new ListItem(new Chunk(Level 2 - Item 1)));
list2.add(new ListItem(new Chunk(Level 2 - Item 2)));

List list3 = new List(List.ORDERED, 20);
list3.add(new ListItem(new Chunk(Level 3 - Item 1)));
list3.add(new ListItem(new Chunk(Level 3 - Item 2)));
list3.add(new ListItem(new Chunk(Level 3 - Item 3)));
list3.add(new ListItem(new Chunk(Level 3 - Item 4)));
list2.add(list3);

//list2.add(new ListItem(new Chunk(Level 2 - Item 3)));
list1.add(list2);

list1.add(new ListItem(new Chunk(Level 1 - Item 4)));

document.add(list1);
document.close();
}
 }

 PDF output:



 RTF output:





 --
 Let Crystal Reports handle the reporting - Free Crystal Reports  
 2008
 30-Day
 trial. Simplify your report design, integration and deployment -
 and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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/


 -- 
 View this message in context:
 http://old.nabble.com/Problem-in-nesting-of-lists-in-RTF--tp26379399p26379918.html
 Sent from the iText - General mailing list archive at Nabble.com.


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
 trial. Simplify your report design, integration and deployment - and
 focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 Buy the iText book

[iText-questions] setSpacingBefore() and setSpacingAfter in RTF

2009-11-13 Thread Chris von See
Hi -

I'm trying to write RTFs with spacing between paragraphs.  When I add  
the spacing directly to a Paragraph then it appears in the output RTF,  
but when I add it to a RtfParagraphStyle and then apply that style to  
the Paragraph then the spacing does not appear.  A quick look at the  
source seems to indicate that the spacing *should* be written to the  
RTF as part of the style, but it doesn't appear in the RTF's  
stylesheet.  Is it legitimate to apply spacing using RTF styles, or  
should it be done directly to the Paragraph only?

Thanks
Chris

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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/