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 Re: trying to convert docbook to pdf
Date Wed, 02 Jun 2004 12:59:13 GMT

    On a further note, I was succesful using XEP from www.renderx.com to 
convert my fop into pdf (it also validated my fop document), so it would 
seem the problem is not with the stylesheets or my produced fop file, 
but the FOP tool seems to bug out for some reason.... I added -debug and 
I get this:

.fop:2:-1 Flow 'xsl-region-body' does not map to the region-body in 
page-master 'blank'
org.apache.fop.apps.FOPException: 
file:/Users/novotny/gridsphere/docs/docbook/UsersGuide/html/UsersGuide.fop:2:-1 
Flow 'xsl-region-body' does not map to the region-body in page-master 
'blank'
        at 
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:380)
        at 
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:276)
        at 
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
        at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1675)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
        at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at org.apache.fop.apps.Driver.render(Driver.java:498)
        at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
        at org.apache.fop.apps.Fop.main(Fop.java:62)


    Jason

Jason Novotny wrote:

>
> 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
>


---------------------------------------------------------------------
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