xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Novotny <novo...@aei.mpg.de>
Subject trying to convert docbook to pdf
Date Wed, 02 Jun 2004 12:23:18 GMT


    I have a docbook document that I'm having trouble converting to PDF. 
First I use the xslt ant task with my docbook file and  the Norman Walsh 
stylesheets from the latest docbook-xsl release:

     [echo] Generating Flow Objects from UsersGuide.xml ...
     [xslt] Processing 
/Users/novotny/gridsphere/docs/docbook/UsersGuide/UsersGuide.xml to 
     [xslt] Loading stylesheet 
Warning! Making portrait pages on USletter paper (8.5inx11in)

    This seems to work and I have a large UsersGuide.fop document, so 
far so good.

Now, I use another ant call which invokes fop (0.20.5) to create a pdf 
from the docbook:

<java classname="org.apache.fop.apps.Fop" fork="true" maxmemory="256m" 
                        <fileset dir="${fop.dir}">
                                <include name="build/fop.jar"/>
                                <include name="lib/*.jar"/>
                                <include name="lib/*.zip"/>
                <arg line="-d -fo ${root.filename}.fop"/>
                <arg line="-pdf ${root.filename}.pdf"/>

However, this produces:

     [echo] Converting Flow Objects to PDF ...
     [java] [DEBUG] Input mode:
     [java] [DEBUG] FO
     [java] [DEBUG] fo input file: UsersGuide.fop
     [java] [DEBUG] Output mode:
     [java] [DEBUG] pdf
     [java] [DEBUG] output file: UsersGuide.pdf
     [java] [DEBUG] OPTIONS
     [java] [DEBUG] no user configuration file is used [default]
     [java] [DEBUG] debug mode on
     [java] [DEBUG] dump configuration
     [java] [DEBUG] quiet mode on
     [java] [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
     [java] [INFO] base directory: 
     [java] [INFO] FOP 0.20.5
     [java] [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
     [java] [INFO] building formatting object tree
     [java] [INFO] setting up fonts
     [java] [ERROR] property - "background-position-horizontal" is not 
implemented yet.
     [java] [ERROR] property - "background-position-vertical" is not 
implemented yet.
     [java] [INFO] JAI support was not installed (read: not present at 
build time). Trying to use Jimi instead
     [java] [ERROR] property - "background-position-horizontal" is not 
implemented yet.
     [java] [ERROR] 
Flow 'xsl-region-body' does not map to the region-body in page-master 

     [java] Java Result: 2

and it seems no PDF file is created. Is this a problem with my fop, or 
the docbook stylesheets? Any ideas on how to debug this is greatly 

    Thanks, Jason

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

View raw message