You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mike Wilkinson <mi...@CODA.com> on 2002/02/14 17:34:10 UTC

Overflow processing

I am working with a program that generates the following which is processed
by fop.
I need to add text overflow to the text area to stop the text overflowing
beyond its 
enclosing container.

I have tried adding the attribute overflow="hidden" to the enclosing block
and block container
and added an fo-inline around the text with that attribute nothing appears
to work.

Am I putting the attribute within the wrong containers?

Or does fop not handle overflow

Mike Wilkinson
 
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo = "http://www.w3.org/1999/XSL/Format" 
xmlns:svg = "http://www.w3.org/2000/svg">
<fo:layout-master-set>
<fo:simple-page-master master-name = "standard" page-height = "297.0mm"
page-width = "210.0mm" margin-top = "0.0mm" margin-bottom = "1.0mm"
margin-left = "0.0mm" margin-right = "0.0mm">
<fo:region-before extent = "1mm">
</fo:region-before>
<fo:region-body margin-top = "1mm">
</fo:region-body><fo:region-after extent = "1mm">
</fo:region-after></fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name = "standard">
<fo:flow flow-name = "xsl-region-body">
<fo:block-container height = "17.6mm" width = "60.5mm" top = "36.8mm" left =
"24.2mm" position = "absolute"><fo:block text-align = "start" line-height =
"14pt" 
font-family = "Times" font-weight = "normal" 
font-style = "normal" font-size = "10pt" 
color = "#000000">
Text to overflow</fo:block>
</fo:block-container>
<fo:block-container height = "17.6mm" width = "69.0mm" top = "38.3mm" 
left = "99.8mm" position = "absolute">
<fo:block text-align = "start" line-height = "14pt" font-family = "Times"
font-weight = "normal" 
font-style = "normal" font-size = "10pt" color = "#000000">
More Text</fo:block>
</fo:block-container>
<fo:block-container height = "17.1mm" width = "63.5mm" top = "90.6mm" 
left = "125.0mm" position = "absolute">
<fo:block text-align = "end" line-height = "14pt" 
font-family = "Times" font-weight = "normal" 
font-style = "normal" font-size = "10pt" 
color = "#000000">
More text</fo:block>
</fo:block-container>
<fo:block-container height = "17.1mm" 
width = "59.5mm" top = "101.2mm" left = "28.7mm" 
position = "absolute">
<fo:block text-align = "start" line-height = "14pt" 
font-family = "Times" font-weight = "normal" 
font-style = "normal" font-size = "10pt" color = "#000000">
More text</fo:block>
</fo:block-container>
<fo:block-container height = "19.2mm" width = "78.1mm" 
top = "149.0mm" left = "35.3mm" position = "absolute">
<fo:block text-align = "start" line-height = "14pt" 
font-family = "Times" font-weight = "normal" font-style = "normal" 
font-size = "10pt" color = "#000000">
More text</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>

Re: Overflow processing

Posted by Chuck Paussa <Ch...@systems.dhl.com>.
Mike,

You're right. Overflow is not yet implemented. (It's not on 
http://xml.apache.org/fop/implemented.html)

Chuck

Mike Wilkinson wrote:

> I am working with a program that generates the following which is 
> processed by fop.
> I need to add text overflow to the text area to stop the text 
> overflowing beyond its
> enclosing container.
>
> I have tried adding the attribute overflow="hidden" to the enclosing 
> block and block container
> and added an fo-inline around the text with that attribute nothing 
> appears to work.
>
> Am I putting the attribute within the wrong containers?
>
> Or does fop not handle overflow
>
> Mike Wilkinson
>  
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo = " http://www.w3.org/1999/XSL/Format"
> xmlns:svg = " http://www.w3.org/2000/svg">
> <fo:layout-master-set>
>




Re: Overflow processing

Posted by Jeremias Maerki <je...@outline.ch>.
> I am working with a program that generates the following which is processed
> by fop.
> I need to add text overflow to the text area to stop the text overflowing
> beyond its 
> enclosing container.
> 
> I have tried adding the attribute overflow="hidden" to the enclosing block
> and block container
> and added an fo-inline around the text with that attribute nothing appears
> to work.
> 
> Am I putting the attribute within the wrong containers?
> 
> Or does fop not handle overflow

No, "overflow" is not implemented, yet. I've got the same problem. I
hope I can look into it soon.

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch