xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Sancho <pascal.san...@takoma.fr>
Subject Re: space at the bottom of fo:table-cell
Date Mon, 11 Jul 2011 08:14:03 GMT

Usually, the blank before and after an image are because of half-leading.

You can set them to 0 by explicitly setting font-height to 0 (and
line-height also, but since it defaults to 1.2, you don't need to change
it unless you have explicitely set it to a value other than a ratio,
i.e. unit or %).

Another thing: I've noticed that there is a bug with FOP 1.0 that
fortunately doesn't occur with FOP trunk:
fo:instream-foreign-object keeps an empty area at the bottom of the image.
As a workaround, you have to increase the SVG height of 0.5pt in your
case if you cannot use the latest FOP Trunk.

Le 11/07/2011 04:28, fo-rocks a écrit :
> I'm trying to draw a vertical line in a fo:table-cell that connects the
> row-top with the row-bottom.  I wrote following code to draw the line.  The
> issue is that even though the height of the vertical line is same as the the
> height of the table-cell, the vertical line stays smaller than the cell
> height.  What am I missing here?
> See the attached screen-shot to see the generated output for this code.
> http://old.nabble.com/file/p32034549/pdf.gif 
> <fo:table-row keep-together="always">
> <fo:table-cell number-columns-spanned="2" height="12.5pt"
> border-end-color="#000000" border-start-color="#000000"
> border-end-style="solid" border-start-style="solid" border-end-width="0.5pt"
> border-bottom="0.5pt solid #000000" border-start-width="0.5pt"
> border-top="0.0pt solid #000000" border-style="solid">
> <fo:block>
> <fo:instream-foreign-object width="341pt" height="12.5pt"
> content-type="image/svg+xml">
> <svg xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink" width="341pt" height="12.5pt">
> <g stroke="black" stroke-width="0.5" stroke-linejoin="miter" fill="none">
> <line x1="50" y1="0" x2="50" y2="12.5"/>
> </g>
> </svg>
> </fo:instream-foreign-object>
> </fo:block>
> </fo:table-cell>
> </fo:table-row>


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

View raw message