[dbdoclet] Re: problems with pdf generation from fo
- From: Dave Crane <dave@xxxxxxxxxxxxxxxxxxxx>
- To: dbdoclet@xxxxxxxxxxxxx
- Date: Mon, 23 Jun 2003 20:37:31 +0100
Well done, Michael, and thank you for turning it around over the weekend!
I've run your revised jar against the simple example that i forwarded to
you off-list, and it worked first time.
The formatting of some of the synopsis data looked a little odd, but I
didn't have much time to
investigate it today. I'll try it on a longer example with some real code
and see if it recurs.
Other than that, I'm a very happy user now. I love the little class
diagrams, gives a very professional
look to the generated PDF.
Dave Crane
Sunwheel Technologies Ltd.
Bristol, UK
On Mon, 23 Jun 2003 10:46:25 +0200, Michael Fuchs <michael.fuchs@unico-
group.com> wrote:
> Hi Dave,
> I had a look at your files and found out that my dbdoclet creates some
> invalid DocBook code. The cause is the overview file, where the levels
> for headings are not detected correctly. As a result, some emphasis tag
> are inserted as children of the book tag, which is not allowed in
> DocBook. FOP seems not be very pleased about this.
>
> With this mail I send you a release candidate of dbdoclet.jar 0.44, which
> fixes your problem. It's not fully tested yet, but I hope it's useful.
>
> Bye Michael
>
> P.S. By the way, the last heading tag <h1> in your overview.html file is
> closed with a </p> tag.
>
>> Hi Michael,
>>
>> I revised my test case to include a single very trivial class
>> \'test.MyClass\', and I still get the same error. I\'ve zipped up the
>> source code, the build file (modified from the one produced by tidbit so
>> that I can run everything one step at a time), all the generated files
>> along the way (the docbook, the fo file) and the sysout trace from
>> running
>> \'ant fo2pdf\'. (Again, I tried with fo2awt as well, to eliminate any
>> PDF-specific problems.)
>>
>> If you have any ideas, then let me know. If you think I ought to take
>> this
>> to the FOPS mailing list, then I will, because its their code that\'s
>> failing. I thought you\'d want to know that I\'m having problems with
>> your
>> distribution of their code anyway.
>>
>> Have a good weekend!
>>
>> Dave
>>
>>> Hi Dave,
>>>
>>> perhaps you shoud try to identify the file, which causes the error.
>>> Just
>>> remove file by file from your generation list until the error is gone.
>>>
>>> If you found the file you can remove method by method....
>>>
>>> After this please send me a copy of the bad code, so I can reproduce
>>> the
>>> error.
>>>
>>> Bye
>>> Michael
>>>
>>>> Michael,
>>>>
>>>> Two more points that may help us find the fault:
>>>>
>>>> - I\'ve just edited dbdoclet.properties to use jpg instead, it still
>>>> fails
>>>> in the same way - I also tried to generate from fo to FOPS using the
>>>> AWT
>>>> target rather than PDF. Same problem there, so the problem is in
>>>> generic
>>>> FO parsing rather than the iText libraries. Just ran through this
>>>> again
>>>> with the jpgs, it gives a different exception though (see below)
>>>>
>>>> Dave
>>>>
>>>>
>>>> fo2awt:
>>>> [java] [DEBUG] Input mode:
>>>> [java] [DEBUG] FO
>>>> [java] [DEBUG] fo input file:
>>>> /home/dave/ulunum/doc/test3/docbook/Reference.fo [java] [DEBUG] Output
>>>> mode:
>>>> [java] [DEBUG] awt on screen
>>>> [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:/home/dave/ulunum/doc/test3/docbook/ [java] [INFO] Using
>>>> org.apache.xerces.parsers.SAXParser as SAX2 Parser [java] [INFO]
>>>> building
>>>> formatting object tree
>>>> [java] [INFO] setting up fonts
>>>> [java] [INFO] [1]
>>>> [java] [INFO] [2]
>>>> [java] [INFO] [3]
>>>> [java] [INFO] [4]
>>>> [java] org.apache.fop.apps.FOPException
>>>> [java] at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:127)
>>>> [java] at org.apache.fop.apps.Fop.main(Fop.java:19)
>>>>
>>>> [java] ---------
>>>>
>>>> [java] [ERROR] null
>>>> [java] java.lang.ClassCastException
>>>> [java] at
>>>> org.apache.fop.layout.LineArea.verticalAlign(LineArea.java:901) [java]
>>>> at org.apache.fop.layout.BlockArea.addLineArea(BlockArea.java:91)
>>>> [java]
>>>> at org.apache.fop.layout.BlockArea.end(BlockArea.java:176) [java]
>>>> at
>>>> org.apache.fop.fo.flow.Block.layout(Block.java:246) [java] at
>>>> org.apache.fop.fo.flow.Block.layout(Block.java:206) [java] at
>>>> org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:111)
>>>> [java]
>>>> at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:68)
>>>> [java] at
>>>> org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:352)
>>>>
>>>>
>>>> [java] at
>>>> org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
>>>>
>>>>
>>>> [java] at
>>>> org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
>>>> [java]
>>>> at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
>>>> [java] at
>>>> org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.
>>>>
>>>>
>>>> ja va:585) [java] at
>>>> org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBi
>>>>
>>>>
>>>> nd er.java:898) [java] at
>>>> org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.j
>>>>
>>>>
>>>> av a:644) [java] at
>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLD
>>>>
>>>>
>>>> oc umentFragmentScannerImpl.java:1008) [java] at
>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDisp
>>>>
>>>>
>>>> at cher.dispatch(XMLDocumentFragmentScannerImpl.java:1469) [java]
>>>> at
>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDoc
>>>>
>>>>
>>>> um entFragmentScannerImpl.java:329) [java] at
>>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:52
>>>>
>>>>
>>>> 5) [java] at
>>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:58
>>>>
>>>>
>>>> 1) [java] at
>>>> org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) [java]
>>>>
>>>> at
>>>> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
>>>>
>>>>
>>>> 11 75) [java] at
>>>> org.apache.fop.apps.Driver.render(Driver.java:457)
>>>> [java] at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:117)
>>>> [java] at org.apache.fop.apps.Fop.main(Fop.java:19)
>>>>
>>>> [java] ---------
>>>>
>>>> [java] java.lang.ClassCastException
>>>> [java] at
>>>> org.apache.fop.layout.LineArea.verticalAlign(LineArea.java:901) [java]
>>>> at org.apache.fop.layout.BlockArea.addLineArea(BlockArea.java:91)
>>>> [java]
>>>> at org.apache.fop.layout.BlockArea.end(BlockArea.java:176) [java]
>>>> at
>>>> org.apache.fop.fo.flow.Block.layout(Block.java:246) [java] at
>>>> org.apache.fop.fo.flow.Block.layout(Block.java:206) [java] at
>>>> org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:111)
>>>> [java]
>>>> at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:68)
>>>> [java] at
>>>> org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:352)
>>>>
>>>>
>>>> [java] at
>>>> org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
>>>>
>>>>
>>>> [java] at
>>>> org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
>>>> [java]
>>>> at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
>>>> [java] at
>>>> org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.
>>>>
>>>>
>>>> ja va:585) [java] at
>>>> org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBi
>>>>
>>>>
>>>> nd er.java:898) [java] at
>>>> org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.j
>>>>
>>>>
>>>> av a:644) [java] at
>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLD
>>>>
>>>>
>>>> oc umentFragmentScannerImpl.java:1008) [java] at
>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDisp
>>>>
>>>>
>>>> at cher.dispatch(XMLDocumentFragmentScannerImpl.java:1469) [java]
>>>> at
>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDoc
>>>>
>>>>
>>>> um entFragmentScannerImpl.java:329) [java] at
>>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:52
>>>>
>>>>
>>>> 5) [java] at
>>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:58
>>>>
>>>>
>>>> 1) [java] at
>>>> org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) [java]
>>>>
>>>> at
>>>> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
>>>>
>>>>
>>>> 11 75) [java] at
>>>> org.apache.fop.apps.Driver.render(Driver.java:457)
>>>> [java] at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:117)
>>>> [java] at org.apache.fop.apps.Fop.main(Fop.java:19)
>>>>
>>>> BUILD FAILED
>>>
>>> --
>>> Dipl.-Ing.(FH) Michael Fuchs
>>> Tel. (0 81 61) 14 41 66
>>> Fax. (0 81 61) 14 05 21
>>> Mobil 0 16 07 84 53 84
>>> EMail mfuchs@xxxxxxxxxxxxxxxxxxxx
>>> URL http://www.michael-a-fuchs.de
>
--
Dave Crane
- References:
- [dbdoclet] Re: problems with pdf generation from fo
- From: Michael Fuchs
Other related posts:
- » [dbdoclet] problems with pdf generation from fo
- » [dbdoclet] Re: problems with pdf generation from fo
- » [dbdoclet] Re: problems with pdf generation from fo
- » [dbdoclet] Re: problems with pdf generation from fo
- [dbdoclet] Re: problems with pdf generation from fo
- From: Michael Fuchs