Peter Lord wrote:
On 11/01/13 08:14, Lukas Theussl wrote:
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.

Thanks again.

I found that the maven generated .fo file is not removed - which helps
debugging!.  Reading this I can get my pdf-config.xml to insert the fop
attributes in the correct place.

However its still not wrapping.

I understand that the FOP version used by the pdf plug-in (0.95) is now
old with line break related issues resolved.   I think I'll need to wait
until the plug-in uses 1.0 or 1.1


Indeed, that's another issue I had forgotten. Unfortunately, the fop upgrade to 1.0 is stalled because of

https://jira.codehaus.org/browse/DOXIA-409

and I just tried locally to use fop 1.1 and got stuck with a missing dependency which is apparently known to the fop people:

http://comments.gmane.org/gmane.text.xml.fop.user/34912

So waiting for another fop release again... :(

-Lukas



Pete


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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to