-none- 2007-09-10 - By Eric Summkeller
Back I create one paragraph with a font size of 40 and one paragraph with a font size of 10. The leading of each paragraph is its font size. My problem is, that the first paragraph overwrites the text of the second paragraph. Any ideas what I could do to resolve this problem?
Example: Phrase phrase1 = new Phrase("_Test",FontFactory.getFont(FontFactory.TIMES, 40, Font.NORMAL,new Color(255, 0, 0)));
Paragraph p1 = new Paragraph("", phrase1.getFont()); p1.setLeading(phrase1.getFont().getSize());
Phrase phrase2 = new Phrase("_Test",FontFactory.getFont(FontFactory.TIMES, 10, Font.NORMAL,new Color(255, 0, 0)));
Paragraph p2 = new Paragraph("", phrase2.getFont()); p2.setLeading(phrase2.getFont().getSize());
p1.add(phrase1); p2.add(phrase2);
document.add(p1); document.add(p2);
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|