----- Original Message ----- From: "Nederhof M.J." <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 02, 2005 7:15 AM
Subject: Re: [iText-questions] set leading
My 2 cents. Last week Paulo advised me to use ColumnText, because setFirstLineIndent wouldn't work otherwise. So, instead of adding Paragraphs to a document, I now add (addElement) them to a ColumnText. Since then I noticed that a whole lot of other things started to work that didn't before. One of those was a change of leading upon images included into text, using a Chunk created as:
new Chunk(myImage, myOffsetX, myOffsetY, true)
I expect that introducing ColumnText may also solve the problem addressed in the query below. ColumnText makes the code more complicated though. For me it required closely reading of the old tutorial, and a lot of trial and error.
By the way, if I remember correctly, I also had to include a line:
myColumnText.setLeading(2, 1);
I cannot say I understand what 2 and 1 mean exactly, or why the choice of 2 and 1 gives good results, but it seems they do.
Regards, Mark-Jan
-------------------------------------------------------------------------------------
Paulo Soares wrote:
That's the way it works. If you need different leadings use more than one Paragraph.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mike Watson > Sent: Tuesday, March 01, 2005 9:45 PM > To: [email protected] > Subject: [iText-questions] set leading > > Hi, > > I am having difficulties adding phrases to a paragraph where > each phrase has a > different leading. That is, it seems to only obey the > paragraph leading, and > not the phrase leadings inside. > > Is this a known problem? Any workarounds? > > thx > -m > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
