RE: One Page DOcument

2006-10-18 Thread Pascal Sancho
 -Original Message-
 From: mikevn123 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 17, 2006 11:27 PM
 
 I have a similar problem as to the one posted before.
 
 I've setup two page masters, one to be used for page-position=any 
 and another to be used for page-position=last.
 
 When my document is rendered, and it is two or more pages, it works 
 great.
 When my document is rendered and it is only one page, it uses the 
 any
 page-master.
 
 Since there is no first defined, I was hoping that the last would 
 apply to page 1.
 
 I am using FOP 0.92beta.
 
 Is there a way to have a single page document take on the attributes 
 of the last page?
 
 Thanks.

Hi,
1. Can you send a short XSL-FO that demonstrate that?
2. I guess you use a fo:repeatable-page-master-alternatives.
you can try to change the fo:conditional-page-master-reference order.

Pascal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Embeded svg files

2006-10-18 Thread Barry Whiting








Hi Louis



Thanks for the response but this wont work
for me Im afraid.



First the image is set in the region-body
and its a vector graphic that we use for a background.



Sorry for the confusion thats my fault.



Kind regards



Barry











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 17 October 2006 16:38
To:
fop-users@xmlgraphics.apache.org
Subject: Re: Embeded svg files






I do this in 0.20.3 for all of our images. Here
is a sample code block that puts a basic shipping mark on a report:



   fo:block text-align=center


   fo:instream-foreign-object
xmlns:svg=http://www.w3.org/2000/svg 

  
svg:svg width=96.4 height=51 

   
   svg:g stroke=black 

   
   svg:line x1=2
y1=37.8 x2=94.4 y2=37.8
stroke-width=1/ 

   
   svg:line
x1=94.4 y1=37.8 x2=81.8 y2=0
stroke-width=1/ 

   
   svg:line
x1=81.8 y1=0 x2=14.6 y2=0
stroke-width=1/ 

   
   svg:line
x1=14.6 y1=0 x2=2 y2=37.8
stroke-width=1/ 

   
   svg:text x=22
y=20 font-family=sans-serif font-size=7pt
style=fill:blackSee Instructions/svg:text


   
   /svg:g 

  
/svg:svg 

  
/fo:instream-foreign-object 

   /fo:block 

This
renders fine in PDF, but to see something like this in IE 5/6, you will need a
plugin (go to Adobe). 

-Lou



~~
LOG-NET, Inc.
The Logistics Network Management System
~~
230 Half Mile Road
Third Floor
Red Bank, NJ
 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~
CONFIDENTIAL  PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content, the
information contained herein is privileged and confidential information/work
product. The communication is intended for the use of the individual or entity
named above. If the reader of this transmission is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the sender immediately by
telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and
destroy any copies, electronic, paper or otherwise, which you may have of this communication.
Thank you.
~~ 




 
  
  Barry
   Whiting [EMAIL PROTECTED] 
  10/17/2006 11:31 AM 
  
   

Please
respond to
fop-users@xmlgraphics.apache.org

   
  
  
  
  
  
   

To


fop-users@xmlgraphics.apache.org


   
   

cc




   
   

Subject


Embeded svg files

   
  
  
  
   






   
  
  
  
 





Hi 


I
wondered if someone could help please. 


I am
able to embed jpg files with no problems at all in my fo file using http://someserver.com/images/someimage.jpg but when I
try to embed a svg file it doesnt work at all but I dont get any errors at
all 


Im
using fop 0.20.5 


Thanks
for any help any one can give 


Regards



Barry









Programmatically set hyphenation-base

2006-10-18 Thread Arturo Perez
Title: Programmatically set hyphenation-base






Hi all,


I've pored over the documentation for 0.92beta but I don't see any API for setting the hyphenation-base user configuration parameter, unlike the situation with font-base.

Is there in fact no way to set it when FOP is embedded in a servlet? If so, any suggestions for what I should set it to?

tia,

arturo





RE: Embeded svg files

2006-10-18 Thread Pascal Sancho
 -Original Message-
 From: Barry Whiting [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 17, 2006 5:31 PM
 
 I am able to embed jpg files with no problems at all in my fo 
 file using http://someserver.com/images/someimage.jpg but 
 when I try to embed a svg file it doesn't work at all but I 
 don't get any errors at all
 
 Im using fop 0.20.5
 
 Thanks for any help any one can give
 
 Regards
 
 Barry

Barry,
Can you post a simple XSL-FO file that demonstrate your problem, please?
If you use external SVG file, can you post it too?

Pascal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: One Page DOcument

2006-10-18 Thread Pascal Sancho
Mike,

There is something about that in list archives (see [1]).
Jeremias wrote that the right solution should be page-position=only
(XSL-FO 1.1 spec), witch is not yet implemented in FOP.
Playing with fo:marker should be a workaround.

Pascal

[1] http://marc.theaimsgroup.com/?l=fop-userm=115700779613800w=2

 -Original Message-
 From: mikevn123 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 18, 2006 2:14 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: One Page DOcument
 
 
  I have a similar problem as to the one posted before.
  
  I've setup two page masters, one to be used for page-position=any 
  and another to be used for page-position=last.
  
  When my document is rendered, and it is two or more pages, it works 
  great.
  When my document is rendered and it is only one page, it uses the 
  any
  page-master.
  
  Since there is no first defined, I was hoping that the 
 last would 
  apply to page 1.
  
  I am using FOP 0.92beta.
  
  Is there a way to have a single page document take on the 
 attributes 
  of the last page?
  
  Thanks.
 
 Hi,
 1. Can you send a short XSL-FO that demonstrate that?
 2. I guess you use a fo:repeatable-page-master-alternatives.
 you can try to change the fo:conditional-page-master-reference order.
 
 
 You guessed right, I am using 
 fo:repeatable-page-master-alternative and 
 fo:conditional-page-master-reference.
 
  fo:layout-master-set
   fo:simple-page-master master-name=default-page
  page-height=11in 
  page-width=8.50in 
  margin-top=0.25in 
  margin-left=0.25in
  margin-right=0.25in
  margin-bottom=0.25in
 !-- space needed for header  footer tables --
   fo:region-body  
region-name=body
margin-top=0in 
  margin-bottom=1.50in/
   fo:region-before region-name=header extent=10.0in/ 
 !-- space needed for header table --
   fo:region-after region-name=footer extent=1.50in/ 
 !-- space needed for footer table --
   fo:region-start  extent=0.00in/
   fo:region-endextent=0.00in/
   /fo:simple-page-master
   
   
   fo:simple-page-master master-name=last-page
page-height=11in 
page-width=8.50in 
margin-top=0.25in 
margin-left=0.25in
margin-right=0.25in
margin-bottom=0.25in 
!-- space needed for header  footer tables --
fo:region-body  
 region-name=body
 margin-top=0in 
 margin-bottom=1.50in/
fo:region-before region-name=header extent=10.0in/ 
 !-- space needed for header table --
fo:region-after  region-name=last-footer 
 extent=1.50in/ !-- space needed for footer table --
fo:region-start  extent=0.00in/
fo:region-endextent=0.00in/
   /fo:simple-page-master
   
   
   fo:page-sequence-master master-name=all
fo:repeatable-page-master-alternatives
 
 fo:conditional-page-master-reference 
  page-position=last master-reference=last-page/
 
 fo:conditional-page-master-reference 
  page-position=any master-reference=default-page /
 
/fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
  /fo:layout-master-set
 
 As I said, it works for 2+ pages, but not for one.
 
 Tell me if you want more code.
 
 Thanks.
 
 -Mike
 --
 View this message in context: 
 http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6874870
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
 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]



fopFactory.setFontBaseURL() relative path problem for Tomcat

2006-10-18 Thread Seamus O'Brien

Hello,
 I'm using FOP 0.92beta and am trying to get PDF generator happening within 
a servlet (everything is fine in DOS). I have put all my FOP stuff into a 
folder webroot/xsl-fop. I can get the PDF generation to work if I hardcode 
the paths for the FopFactory as follows:


fopFactory.setUserConfig(new File(d:/myapp/webroot/xsl-fop/fop.xconf));
fopFactory.setFontBaseURL(file:///d:/myapp/webroot/xsl-fop/);

But I clearly don't want to do it this way for a war file, I want to use 
relative paths, but I can't seem to be able to configure it.The first part 
works:


fopFactory.setUserConfig(getServletContext().getRealPath(/xsl-fop/fop.xconf));

but this doesn't:

fopFactory.setFontBaseURL(/xsl-fop);

Can anyone tell me where I'm going wrong. It must be a simple paths problem 
for URL parameter (I've always had difficulties with Tomcat and relative 
paths!) I can see in the logs:

INFO - base set to: file:/D:/eclipse321/./
ERROR - Error with base URL /xsl-fop/): no protocol: /xsl-fop/
(clearly the base is set incorrectly)

Also, I am not clear why I have to specify the path to the font.xml file 
twice, once in the fop.xconf file as follows:

...
renderers
 renderer mime=application/pdf
 filterList
   valueflate/value
 /filterList
 fonts
   font metrics-url=verdana.xml kerning=yes
 font-triplet name=Verdana style=normal weight=normal/
   /font

and again for fopFactory.setFontBaseURL().

Thanks in advance,
sham

_
Find accommodation FAST with MSN Search! http://search.msn.ie/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: One Page DOcument

2006-10-18 Thread mikevn123

I've used the fo:marker logic with FOP 0.20.5, however 0.92beta does not
allow fo:tables within markers.

There are also issues with figuring out the exact last page.  I've used the
position()=last() logic, but then if you have a long field that flows onto
another page, it puts the same footer on the second to last page and the
last page.

For example, in printing business forms - you have a order header and order
detail lines.
If you use the position()=last() logic on the detail lines, it seems to work
fine, until after your detail lines, you want to put a document message from
the order header that happens to flow onto another page.

The last page should display a sub-total, tax and grand total.  This should
not be on the first page (unless the first page happens to also be the last
page).

There doesn't seem to be a good real test for last page yet.  The only
option should work, but when is it *actually* going to be implemented so I
can use it?

-Mike


Pascal Sancho wrote:
 
 Mike,
 
 There is something about that in list archives (see [1]).
 Jeremias wrote that the right solution should be page-position=only
 (XSL-FO 1.1 spec), witch is not yet implemented in FOP.
 Playing with fo:marker should be a workaround.
 
 Pascal
 
 [1] http://marc.theaimsgroup.com/?l=fop-userm=115700779613800w=2
 
 -Original Message-
 From: mikevn123 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 18, 2006 2:14 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: One Page DOcument
 
 
  I have a similar problem as to the one posted before.
  
  I've setup two page masters, one to be used for page-position=any 
  and another to be used for page-position=last.
  
  When my document is rendered, and it is two or more pages, it works 
  great.
  When my document is rendered and it is only one page, it uses the 
  any
  page-master.
  
  Since there is no first defined, I was hoping that the 
 last would 
  apply to page 1.
  
  I am using FOP 0.92beta.
  
  Is there a way to have a single page document take on the 
 attributes 
  of the last page?
  
  Thanks.
 
 Hi,
 1. Can you send a short XSL-FO that demonstrate that?
 2. I guess you use a fo:repeatable-page-master-alternatives.
 you can try to change the fo:conditional-page-master-reference order.
 
 
 You guessed right, I am using 
 fo:repeatable-page-master-alternative and 
 fo:conditional-page-master-reference.
 
  fo:layout-master-set
   fo:simple-page-master master-name=default-page
  page-height=11in 
  page-width=8.50in 
  margin-top=0.25in 
  margin-left=0.25in
  margin-right=0.25in
  margin-bottom=0.25in
 !-- space needed for header  footer tables --
   fo:region-body  
region-name=body
margin-top=0in 
  margin-bottom=1.50in/
   fo:region-before region-name=header extent=10.0in/ 
 !-- space needed for header table --
   fo:region-after region-name=footer extent=1.50in/ 
 !-- space needed for footer table --
   fo:region-start  extent=0.00in/
   fo:region-endextent=0.00in/
   /fo:simple-page-master
   
   
   fo:simple-page-master master-name=last-page
page-height=11in 
page-width=8.50in 
margin-top=0.25in 
margin-left=0.25in
margin-right=0.25in
margin-bottom=0.25in 
!-- space needed for header  footer tables --
fo:region-body  
 region-name=body
 margin-top=0in 
 margin-bottom=1.50in/
fo:region-before region-name=header extent=10.0in/ 
 !-- space needed for header table --
fo:region-after  region-name=last-footer 
 extent=1.50in/ !-- space needed for footer table --
fo:region-start  extent=0.00in/
fo:region-endextent=0.00in/
   /fo:simple-page-master
   
   
   fo:page-sequence-master master-name=all
fo:repeatable-page-master-alternatives
 
 fo:conditional-page-master-reference 
  page-position=last master-reference=last-page/
 
 fo:conditional-page-master-reference 
  page-position=any master-reference=default-page /
 
/fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
  /fo:layout-master-set
 
 As I said, it works for 2+ pages, but not for one.
 
 Tell me if you want more code.
 
 Thanks.
 
 -Mike
 --
 View this message in context: 
 http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6874870
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6876821
Sent from the FOP - Users mailing list archive at 

Re: Exception: Some content could not fit into a line/page with fop 0.92beta

2006-10-18 Thread Karsten Ohme
Jeremias Maerki wrote:
 Just FYI, FOP Trunk and FOP 0.93 (when released) will not always throw
 an exception anymore in this case. It reacts depending on the overflow
 property, so for the default case, the page will simply overflow. Note
 that FOP interprets keep with the value always so that it may not
 break the content apart in any case. DocBook should generate an integer
 value for the keep property to allow breaking in difficult situations
 but that isn't implemented, yet.

I have also proposed in the DocBook mailing list the integer property.
But they want to keep to always. Don't know why, because this results
always for large content in an overflow. Integer seems to be much better.

Karsten
 
 On 12.10.2006 21:47:18 Karsten Ohme wrote:
 
Vincent Hennebert wrote:

Hi Karsten,

snip/

The content does not fit on the page, it must be continued on the next
page.
I want, that the content is continued on the next page and no error is
thrown. Why does it not work?

It looks like you want to process pre-formatted text.

Yes.




I suspect
there is a line too long to fit the available horizontal space.

No. Vertical space. If a line is too long it is simply going over the
border. If I separate the block into many blocks, everything works. But
this must be done by hand, this would be really really really cruel.

Can you please post a stripped down version of your fo file that
reproduces the problem?

The source is a DocBook file. I tried to translate the fo file. With fop
0.20.5 it works. Test2.pdf is the output. With fop 0.92 it doesn't.


The problem is caused by a keep-together.within-column=always in the
fo:block surrounding the block that contains the Beispiel 1.1 Example
string. Removing that attribute solves the problem. This works with Fop
0.20.5 simply because keep-together was not entirely supported in that
version.

I guess that the keep-together attribute is put by the template handling
the example DocBook element. In that case you would have to customize
that template to remove the attribute. Perhaps there is already a
parameter for that in the DocBook XSLT stylesheets.

If you have problems customizing the stylesheets then you will find help
on the docbook-apps mailing list.

Thanks, I will try it, it should do it. I will also report it to the
DocBook mailing list, so that they can correct the stylesheet or reason,
why it works this way.
 
 
 
 Jeremias Maerki
 
 
 -
 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]



Re: One Page DOcument

2006-10-18 Thread Andreas L Delmelle

On Oct 18, 2006, at 15:56, mikevn123 wrote:



I've used the fo:marker logic with FOP 0.20.5, however 0.92beta  
does not

allow fo:tables within markers.


FYI: this has been fixed in FOP Trunk, and so will be available in  
the next release.


Cheers,

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: One Page DOcument

2006-10-18 Thread J.Pietschmann

mikevn123 wrote:
fo:conditional-page-master-reference 
 page-position=last master-reference=last-page/
fo:conditional-page-master-reference 
 page-position=any master-reference=default-page /


The spec says the page master reference first matching the position
is used, in case of a one page document the last-page page master
should go into effect. I'd say if you are not getting this page
master, this indicates a bug.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Programmatically set hyphenation-base

2006-10-18 Thread J.Pietschmann

Arturo Perez wrote:

I've pored over the documentation for 0.92beta but I don't see any
API for setting the hyphenation-base user configuration parameter,
unlike the situation with font-base.

Is there in fact no way to set it when FOP is embedded in a servlet?
If so, any suggestions for what I should set it to?


Indeed there seems to be no convenient way to set the hyphenation base.

The hard way probably goes like this:
 import org.apache.avalon.framework.configuration.DefaultConfiguration;
 ...
 DefaultConfiguration cfg = new DefaultConfiguration()
 DefaultConfiguration hyphBase = cfg.getChild(hyphenation-base,true);
 hyphBase.setValue(a base url or directory);
 FopFactory factory =  FopFactory.newInstance();
 factory.setUserConfig(cfg);
 ... create FO processor and so on ...

You can (should) add other configuration options to cfg as well.
Beware: completely untested and based on wild guesses as well as
http://excalibur.apache.org/apidocs/org/apache/avalon/framework/configuration/DefaultConfiguration.html
and other docs.

Have fun!

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fopFactory.setFontBaseURL() relative path problem for Tomcat

2006-10-18 Thread Jeremias Maerki
Karl Roberts has described quite nicely what what you need. Read on at
http://www.nabble.com/RE%3A-Setting-fop-0.91-to-know-relative-path.-tf1334785.html#a3566172

Note to self: At some point I have to add this to the website

On 18.10.2006 15:52:21 Seamus O'Brien wrote:
 Hello,
   I'm using FOP 0.92beta and am trying to get PDF generator happening within 
 a servlet (everything is fine in DOS). I have put all my FOP stuff into a 
 folder webroot/xsl-fop. I can get the PDF generation to work if I hardcode 
 the paths for the FopFactory as follows:
 
 fopFactory.setUserConfig(new File(d:/myapp/webroot/xsl-fop/fop.xconf));
 fopFactory.setFontBaseURL(file:///d:/myapp/webroot/xsl-fop/);
 
 But I clearly don't want to do it this way for a war file, I want to use 
 relative paths, but I can't seem to be able to configure it.The first part 
 works:
 
 fopFactory.setUserConfig(getServletContext().getRealPath(/xsl-fop/fop.xconf));
 
 but this doesn't:
 
 fopFactory.setFontBaseURL(/xsl-fop);
 
 Can anyone tell me where I'm going wrong. It must be a simple paths problem 
 for URL parameter (I've always had difficulties with Tomcat and relative 
 paths!) I can see in the logs:
 INFO - base set to: file:/D:/eclipse321/./
 ERROR - Error with base URL /xsl-fop/): no protocol: /xsl-fop/
 (clearly the base is set incorrectly)
 
 Also, I am not clear why I have to specify the path to the font.xml file 
 twice, once in the fop.xconf file as follows:
 ...
 renderers
   renderer mime=application/pdf
   filterList
 valueflate/value
   /filterList
   fonts
 font metrics-url=verdana.xml kerning=yes
   font-triplet name=Verdana style=normal weight=normal/
 /font
 
 and again for fopFactory.setFontBaseURL().
 
 Thanks in advance,
 sham



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie needs help controlling line wrap in PDF

2006-10-18 Thread Dan Carwin
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to make directives look better? Customizing/defining elements and formatting...

2006-10-18 Thread Dan Carwin
This is another newb question, and please forgive me as I fear it is off
topic for this list. 
(please point me in the right direction)

Quick version:
==
Where and how do I define new element types?  (How) Can I import
existing ones I like from the ASF?


Explanation
===
I am writing technical documentation and need to document Apache HTTPD
conf file directives.

Example:
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#acceptmutex

In the Apache docs (linked above) there is a really nice format for a
directive which encapsulates the directive in a box and formats the
header elements of the directive in bold, etc.  

I am currently using a table to format my directives, and they look
like crap. :)  Especially when converted to PDF, as the first column of
the table takes up 80% of the page width and the second column is right
off the page:

Example: http://www.sonic.net/dcarwin/images/directive-example.jpg

Thus the question is how can I make my directive definitions look like
the ASF's?

Best I can tell I have to define or import new custom elements, such as
directivesynopsis which are used in the ASF docs, which are not
defined currently in the list of element types I have access to.  These
new element definitions also have to include instructions to FOP on how
to format them when converted to PDF. (right?)

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
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie needs help controlling line wrap in PDF

2006-10-18 Thread Dan Carwin
Thanks Jay,

Here is an example of the kind of text block that falls off the page:

...
section
titleDB libraries/title

paraPlease note that compat-db package is required on Linux
platform
as the dynamically linked libdb.so.3 library depends on the
compat-db
libraries. Some of Linux systems, for example RedHat AS4, do not
have
this package installed by default./para

paraIn the absence of this package, the following error occurs
during server startup:/para

paraprogramlistinghttpsd.prefork: error while loading shared
libraries: libdb.so.3: cannot open shared 
  object file: No such file or directory
  Server start FAILED/programlisting/para

paraThere is a workaround for this error. See: ulink
 
url=https://www.covalent.net/kb/index.html?kba_id=414amp;drop_product=
amp;drop_category=amp;drop_subproduct=amp;txt_search=414amp;drop_sea
rchby=article+idCovalent
Knowledge Base Article ID: 414/ulink The workaround is to
create a
symbolic link to an existing DB library./para
  /section
/section


It is the first line of the programlisting element which will not
wrap, as well as the url portion of the ulink element.
Note that the programlisting element does have spaces.

I'll read up on XSLT to see if I can write a transform.

Thanks,
Dan

-Original Message-
From: Jay Bryant [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2006 4:07 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Newbie needs help controlling line wrap in PDF


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 [EMAIL PROTECTED]
To: fop-users@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: [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]