You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "J.Pietschmann" <j3...@yahoo.de> on 2003/02/21 01:44:37 UTC

Re: More newbie hyphenation and option flag issues with docbook.xml --> fo -->pdf

Aaron Weber wrote:
> [ERROR] Couldn't find hyphenation pattern en
Ah! Set the language to en_GB.

J.Pietschmann


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


Re: Stack Trace (was: newbie hyphenation...)

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Aaron Weber wrote:
> Funny thing is, I don't know that I even *have* any tables, at least not
> that I put in myself...

DocBook might have put in something for you.

> Anyway, here's the stack trace:
> [ERROR] null
...
> java.lang.NullPointerException
>         at
> org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:328)
>         at org.apache.fop.fo.FObjMixed.<init>(FObjMixed.java:28)
>         at org.apache.fop.fo.flow.Block.<init>(Block.java:72)
>         at org.apache.fop.fo.flow.Block$Maker.make(Block.java:37)
>         at
> org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:255)

This means you have content outside a flow, which is
illegal. This should not happen. Upgrade your DocBook XSL,
be sure your DocBook docs validate, and complain on the
DocBook list if this persists.

J.Pietschmann


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


Stack Trace (was: newbie hyphenation...)

Posted by Aaron Weber <aa...@ximian.com>.
I'll see about getting newer Docbook XSL setups and customizing them for
table widths. 
Funny thing is, I don't know that I even *have* any tables, at least not
that I put in myself...

Anyway, here's the stack trace:


[ERROR] null
org.apache.fop.apps.FOPException
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:74)
        at org.apache.fop.apps.Fop.main(Fop.java:19)
 
---------
 
java.lang.NullPointerException
        at
org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:328)
        at org.apache.fop.fo.FObjMixed.<init>(FObjMixed.java:28)
        at org.apache.fop.fo.flow.Block.<init>(Block.java:72)
        at org.apache.fop.fo.flow.Block$Maker.make(Block.java:37)
        at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:255)
        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at org.apache.fop.apps.Driver.render(Driver.java:457)
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69)
        at org.apache.fop.apps.Fop.main(Fop.java:19)
 
---------
 
java.lang.NullPointerException
        at
org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:328)
        at org.apache.fop.fo.FObjMixed.<init>(FObjMixed.java:28)
        at org.apache.fop.fo.flow.Block.<init>(Block.java:72)
        at org.apache.fop.fo.flow.Block$Maker.make(Block.java:37)
        at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:255)
        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at org.apache.fop.apps.Driver.render(Driver.java:457)
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69)
        at org.apache.fop.apps.Fop.main(Fop.java:19)



On Fri, 2003-02-21 at 13:35, J.Pietschmann wrote:

> Aaron Weber wrote:
> > [INFO] area contents overflows area
> This happens if, well, the contents overflows the allocated area.
> Usually caused by long words and word-like strings in table cells.
> 
> > [ERROR] null
> Possibilities
> - Most often, a mandatory (for FOP) property was not set.
> - Footnotes on the last page which did not fit that page.
> - Unspecified problems with markers.
> Run FOP with the -d flag to get a stacktrace, and post the
> first few lines here.
> 
> > Any tips? I'll try & get rid of the offending table-layout issues,
> > but... I don't know about adding table-column width attributes to every
> > table in the document.
> Upgrade to the latest DocBook XSL, which fixes many issues.
> Also, you can specify table column widths in DocBook, check
> the DocBook documentation.
> 
> J.Pietschmann
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 

Re: More newbie hyphenation and option flag issues with docbook.xml --> fo -->pdf

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Aaron Weber wrote:
> [INFO] area contents overflows area
This happens if, well, the contents overflows the allocated area.
Usually caused by long words and word-like strings in table cells.

> [ERROR] null
Possibilities
- Most often, a mandatory (for FOP) property was not set.
- Footnotes on the last page which did not fit that page.
- Unspecified problems with markers.
Run FOP with the -d flag to get a stacktrace, and post the
first few lines here.

> Any tips? I'll try & get rid of the offending table-layout issues,
> but... I don't know about adding table-column width attributes to every
> table in the document.
Upgrade to the latest DocBook XSL, which fixes many issues.
Also, you can specify table column widths in DocBook, check
the DocBook documentation.

J.Pietschmann


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


Re: More newbie hyphenation and option flag issues with docbook.xml --> fo -->pdf

Posted by Aaron Weber <aa...@ximian.com>.
Excellent!  A quick search and replace has gotten rid of the hyphenation
problems, (language="en" --> language="en_GB") and deleting a couple
more unsupported tags has gotten rid of all my errors!

Now, I'm down to 

[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] current implementation of tables requires a table-column for
each column, indicating column-width
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] current implementation of tables requires a table-column for
each column, indicating column-width

a couple of..

[INFO] area contents overflows area
[INFO] area contents overflows area
[INFO] area contents overflows area

and of course at the end:
[ERROR] null

and failure. :(


Really, I want to be able to automate the Docbook XML --> PDF
transition, and avoid editing the autogenerated .fo 
files by hand as much as possible (autogenerated is almost always
synonomous with "hard to edit by hand," and any sort of manual
intervention means extra opportunity for confusion, error, and trouble
when we need to regenerate after a change to the original).

We've got the XML-->HTML transition down fine, fortunately... 

Any tips? I'll try & get rid of the offending table-layout issues,
but... I don't know about adding table-column width attributes to every
table in the document.

Yours,

Aaron.


On Thu, 2003-02-20 at 19:44, J.Pietschmann wrote:
> Aaron Weber wrote:
> > [ERROR] Couldn't find hyphenation pattern en
> Ah! Set the language to en_GB.
> 
> J.Pietschmann
> 
> 
> ---------------------------------------------------------------------
> 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