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

Hi,

    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]
     [echo]
     [echo] Generating Flow Objects from UsersGuide.xml ...
     [xslt] Processing 
/Users/novotny/gridsphere/docs/docbook/UsersGuide/UsersGuide.xml to 
/Users/novotny/gridsphere/docs/docbook/UsersGuide/html/UsersGuide.fop
     [xslt] Loading stylesheet 
/Users/novotny/gridsphere/docs/docbook/common/docbook-xsl-1.64.0/fo/docbook.xsl
     [xslt] 
Users/novotny/gridsphere/docs/docbook/common/docbook-xsl-1.64.0/fo/docbook.xsl:197:16: 
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" 
dir="${html.output.dir}">
                <classpath>
                        <fileset dir="${fop.dir}">
                                <include name="build/fop.jar"/>
                                <include name="lib/*.jar"/>
                                <include name="lib/*.zip"/>
                        </fileset>
                </classpath>
                <arg line="-d -fo ${root.filename}.fop"/>
                <arg line="-pdf ${root.filename}.pdf"/>
        </java>

However, this produces:

[echo]
     [echo]
     [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: 
file:/Users/novotny/gridsphere/docs/docbook/UsersGuide/html/
     [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] 
file:/Users/novotny/gridsphere/docs/docbook/UsersGuide/html/UsersGuide.fop:2:54401 
Flow 'xsl-region-body' does not map to the region-body in page-master 
'blank'

     [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 
appreciated.

    Thanks, Jason


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


Mime
View raw message