Paragraphs can contain many chunks, each with its own font, it doesn't make 
sense to have a set font. You may reduce the memory usage by calling 
RtfWriter2.setDataCacheStyle().

Paulo

----- Original Message ----- 
From: "Alin Popa" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 24, 2006 11:59 AM
Subject: [iText-questions] Paragraph set methods


> Hi guys,
>
> Not for long time ago, I had some problems with Paragraph class.
> I'm generating a very big RTF document (few hundred pages) and
> of course with a lot of paragraphs (instances of Paragraph class).
>
> In the constructor of Paragraph class, I'm passing few parameters (the 
> text
> of the paragraph and the font of it, using RtfFont() ).
>
> Since I'm trying to do that, I have A very big number of paragraph 
> instances
> and beside of that I'm using some recursive methods in which I'm creating
> Paragraph instances.
>
> My question is: there is a way to set the text and the font of a paragraph
> by using some set methods ? Because I didn't find something like that.
>
> The only workaround that I can make is to enlarge the memory of the JVM
> -Xmx512m, but this is not to elegant.
>
> Please help me with some answers.
>
> Thanks in advance.
>
>
> -- 
> Best Regards,
>
> Alin
>


--------------------------------------------------------------------------------


> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


--------------------------------------------------------------------------------


> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to