My question was: is the wrapping different in the apt source and the
pdf/html output? Pre-formatted text preserves line-breaks, so you would
have to adjust the apt source to fit your needs.
However, it seems to me that it should be possible to modify this
behavior with some xsl-fo attributes as you have indicated. You'll have
to play around with some keep-together settings, in particular
keep-together.within-line, see
http://stackoverflow.com/questions/2227797/xls-fo-fop-0-94-using-the-keep-together-with-wrap-option-wrap
But I'm no fo expert, maybe try a specialized fo list/forum if you can't
get it to work.
HTH,
-Lukas
Peter Lord wrote:
On 11/01/13 07:34, Lukas Theussl wrote:
Are you saying that lines in the pdf/html output are wrapped differently
than in the apt source? Pre-formatted text by definition preserves both
spaces and line breaks so the text should be rendered exactly as in the
apt source.
Many thanks for your reply.
What I see in the pdf is :-
* text flowing off the end of the page - http://plord.co.uk/bex/page.png
* text flowing off the side of the page -
http://plord.co.uk/bex/width.png
I really want to see text wrapped.
Thanks,
Pete
-Lukas
Peter Lord wrote:
> Hi All,
>
> I've been battling with trying to get preformatted text converted to
pdf
> with the maven pdf plug-in (
> http://maven.apache.org/plugins/maven-pdf-plugin/ ).
>
> The problem is with long or wide text, the text overflows the paper.
The
> text is not wrapped by line or by page. Text never flows to a
second page.
>
> The html output is really nice :-)
>
> The apt source is :-
>
> +-----+
> large
> number
> of
> lines
> ....
> +-----+
>
>
> I've tried creating pdf-config.xml file :-
>
> <xsl:stylesheet
> version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
> <xsl:attribute-set name="body.pre"
> use-attribute-sets="base.pre.style">
> <xsl:attribute
name="font-size">6pt</xsl:attribute>
> <xsl:attribute
name="line-height">7pt</xsl:attribute>
> <xsl:attribute
> name="keep-together">auto</xsl:attribute>
> <xsl:attribute
> name="keep-with-next.within-page">auto</xsl:attribute>
> <xsl:attribute
name="wrap-option">wrap</xsl:attribute>
> </xsl:attribute-set>
> </xsl:stylesheet>
>
>
> but no joy.
>
> Any suggestions to enable wrapping in pdf ?
>
> Many thanks,
>
> Pete
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]