You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Romani Mauro <M....@datasiel.net> on 2001/05/17 16:05:27 UTC

Error using FOP -print option

I cannot use the -print option from command line.
This should be a known bug
Can somebody tell me something about?

I'm using FOP 0.19.0-CVS
same result on windows NT and Linux 
same result using local and network printer

Command line: 
FOP -xsl file1.xsl -xml file1.xml -print -d

Result:
Input mode: xslt transformation
xml input file: file1.xml
xslt stylesheet: file1.xsl
Output mode: print directly
OPTIONS
no user configuration file is used [default]
debug mode on
dump configuration
quiet mode on
base directory: D:\fop0190\xml-fop
FOP 0.19.0-CVS
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
formatting FOs into areas
 [1ERROR: null
org.apache.fop.apps.FOPException
        at org.apache.fop.apps.PrintStarter.run(PrintStarter.java:79)
        at org.apache.fop.apps.Fop.main(Fop.java:19)

---------

java.lang.NullPointerException
        at
org.apache.fop.render.awt.AWTFontMetrics.setFont(AWTFontMetrics.java:246)
        at
org.apache.fop.render.awt.AWTFontMetrics.getAscender(AWTFontMetrics.java:152
)
        at
org.apache.fop.render.awt.FontMetricsMapper.getAscender(FontMetricsMapper.ja
va:115)
        at org.apache.fop.layout.FontState.getAscender(FontState.java:47)
        at org.apache.fop.layout.LineArea.<init>(LineArea.java:106)
        at org.apache.fop.layout.BlockArea.start(BlockArea.java:223)
        at org.apache.fop.fo.flow.Block.layout(Block.java:207)
        at
org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:79)
        at org.apache.fop.fo.pagination.PageSequence.layoutStaticContent
PageSequence.java:377)
        at
org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.j
ava:334)
        at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:252)
        at org.apache.fop.fo.pagination.Root.format(Root.java:128)
        at org.apache.fop.fo.FOTreeBuilder.format(FOTreeBuilder.java:299)
        at org.apache.fop.apps.Driver.format(Driver.java:464)
        at org.apache.fop.apps.PrintStarter.run(PrintStarter.java:73)
        at org.apache.fop.apps.Fop.main(Fop.java:19)

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


Re: Error using FOP -print option

Posted by Wabei <wa...@yahoo.com>.
I was not able to get the print function to work on
unix either.  I created a pdf file and downloaded
accroread to send the pdf file to a network printer.  

Hope that helps.

Wabei

--- Romani Mauro <M....@datasiel.net> wrote:
> I cannot use the -print option from command line.
> This should be a known bug
> Can somebody tell me something about?
> 
> I'm using FOP 0.19.0-CVS
> same result on windows NT and Linux 
> same result using local and network printer
> 
> Command line: 
> FOP -xsl file1.xsl -xml file1.xml -print -d
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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