Hello all,

Sorry if this question has been discussed before, but I didn't see it.

I'm trying to use iText to generate a PDF. Sometimes a piece of a sentence
needs to be printed in bold face. If I use Paragraphs for this, like so:

elementList.add(new Paragraph(nodeValue, new Font(djvuBold)));
// djvuBold is a BaseFont

it works except that a newline follows after each paragraph element.

So I thought I'd try to use a Chunk or a Phrase with its own font and add
it to a Paragraph to fix it, but the result is that the font settings of
a Chunk or a Phrase are not taken over. The text is displayed in plain
style.


Can anyone tell me what I'm doing wrong?

regards,


-- 
Reinout van Schouwen


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to