Hi Georg,

Georg Datterl wrote:
> Hi Vincent, 
> 
>> Then you have to do it in two steps: one to see in how many lines 
>> the headline will be broken, 
> 
> Does FOP offer any help here? I could calculate the string length and divide, 
> but that would not take hyphenation into account.

Not really. That would be very tricky to implement because FOP’s code is
not designed to offer that functionality. And anyway this would be
resource-hungry because the whole layout process would have to be
partially run in order to know what are the dimensions of the area, the
font to be used, the font size, etc.

Your best bet is, as you said, to estimate the size of the text.
Hopefully that would give you a correct result in 99% of the cases.


>> About the number of occurences of the marker: you just have to make sure 
>> that at least one marker will be present on every page. 
> 
> Good, I assumed somehting like that but every example I found talked about 
> putting the marker in every cell...
> 
> Regards,
>  
> Georg Datterl

Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to