Maybe I'm just really not getting another obvious idea...
I'd be glad if you just could give me a hint for translating a
HTML-paragraph with multiple lines which can containt different lineheights
to iText elements.


On Wed, Mar 14, 2012 at 3:49 PM, Christoph Schramm <derch...@gmail.com>wrote:

> I think images show it best:
> http://www.das-maingold.de/_projekte/karteneden/screen1.jpg
> shows the original InDesign-Document and the textframe which is converted
> to ONE paragraph when exported to IDML.
> First line is a CharacterRange (which I convert to a <span>), second to
> fourth another CharacterRange (thus <span>).
>
> http://www.das-maingold.de/_projekte/karteneden/screen2.jpg
> shows the same InDesign, but I increased the leading (in InDesign) for the
> SECOND line ("Polkaweg 23a") from 16pt to 18pt. As you can see, this
> affects the spacing between first und second line.
> I always thought InDesign and PDF would work in the same "logical way" for
> building objects, so I hoped I could use the same hierarchical structure of
> objects...
>
> (Background is that I'm working on a IDML to Flash to PDF converter, I
> already have built the IDML parser)
>
>
> On Wed, Mar 14, 2012 at 3:25 PM, iText Info <i...@1t3xt.info> wrote:
>
>> Op 14/03/2012 14:50, Christoph Schramm schreef:
>> > What I need to increase is the ascent. For the first line of each
>> > paragraph I could do that with SpacingBefore and for the spacing
>> > between each lines there's leading
>>
>> I don't understand. I know what the ascent and the descent are.
>> It's explained in the book you say you've read:
>> http://www.flickr.com/photos/itextinaction/4330322144
>>
>> You can tell iText to take the ascent/descent of the complete font into
>> account when adding content to a PdfPCell.
>> As you can see in figure 3.7, you can also ask iText to calculate the
>> ascent of specific words.
>>
>> However, I don't know what you mean when you say you want to increase
>> the ascent.
>> Are you saying you want to change this property for certain glyphs/ a
>> font?
>> And what do you mean by "the leading in PDF gets appended to a line."
>> The leading is the space between the baselines of two consecutive lines
>> of text.
>> The leading isn't appended to anything. You'll have to be more clear if
>> you want to get help.
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>>
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to