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 Dan Carwin <dc...@covalent.net> on 2006/10/18 23:44:53 UTC

Newbie needs help controlling line wrap in PDF

Hello,

I am a new user of FOP and new to XML docs in general.  I did do some
searching before this email on the archives looking for "running off
page" and "off page" and I saw a thread on images, but not on text
elements.  Any help is greatly appreciated.

Issue:
======
"Program Listing" elements run off the right margin of the page when
converting to PDF
"URL" attributes of a ULINK also run off the page

Is there a way to control this? Or is there a better element type to use
to represent command line commands?

Environment notes:
==================
I use XML Mind Editor 3.2 to edit the docs.

Here is an example of the command I am using to convert into PDF (direct
from XML).

"C:\"Program Files"\apacheFOP\fop-0.92beta\fop.bat -xml
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml
-xsl E:\data\docbook\docbook-xsl-1.70.1\fo\docbook.xsl -pdf
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml.p
df"


Thanks,
Dan Carwin

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


Re: Newbie needs help controlling line wrap in PDF

Posted by Jay Bryant <ja...@bryantcs.com>.
Hi, Dan,

You didn't include an example of an offending text block, but I'm guessing 
that you have really long strings that don't contain spaces.

One way to deal with that is to add another processing step in your chain of 
processing steps before you get to FOP.

In XSLT, you can write a transform that identifies strings with more than 
some number of characters and then chops those strings (perhaps into 
separate blocks, if you like). You can do similar things with other 
languages, of course.

HTH

Jay Bryant
Bryant Communication Services


----- Original Message ----- 
From: "Dan Carwin" <dc...@covalent.net>
To: <fo...@xmlgraphics.apache.org>
Sent: Wednesday, October 18, 2006 4:44 PM
Subject: Newbie needs help controlling line wrap in PDF


Hello,

I am a new user of FOP and new to XML docs in general.  I did do some
searching before this email on the archives looking for "running off
page" and "off page" and I saw a thread on images, but not on text
elements.  Any help is greatly appreciated.

Issue:
======
"Program Listing" elements run off the right margin of the page when
converting to PDF
"URL" attributes of a ULINK also run off the page

Is there a way to control this? Or is there a better element type to use
to represent command line commands?

Environment notes:
==================
I use XML Mind Editor 3.2 to edit the docs.

Here is an example of the command I am using to convert into PDF (direct
from XML).

"C:\"Program Files"\apacheFOP\fop-0.92beta\fop.bat -xml
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml
-xsl E:\data\docbook\docbook-xsl-1.70.1\fo\docbook.xsl -pdf
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml.p
df"


Thanks,
Dan Carwin

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



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