On 15.07.2010 11:37, Saurabh Thakkur wrote:
I'm generating one plain text (MimeConstants.MIME_PLAIN_TEXT) file.
Where I'm taking the data from the XML and writing it according to
one defined template(XSL)

I'm getting unwanted blank lines on the generated Text file. Same
template works fine for PDF and RTF formats. I'm not getting any
unwanted lines with these formats.

While this is surprising to unsuspecting users, that's the way the
text renderer is supposed to work. The page is basically divided into
a grid defined by the characters-per-inch and lines-per-inch values,
and the positions determined by FOPs layout engine are rounded by the
renderer to the next grid position. If the line height determined by
the layout doesn't match exactly the line height defined by the
renderers lines-per-inch value, empty lines are likely to appear. The
only way to avoid them is to take measures to ensure a constant line
height which matches the renderers lines-per-inch value.
How the renderer's lines-per-inch value is determined depends on the
FOP version. Which release are you using?

(Ow, was it lines per inch or lines per page? Anyway, the effect is
the same.)

J.Pietschmann

---------------------------------------------------------------------
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