xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald McDonald <dbrab...@gmail.com>
Subject Error while processing xml and xslt files to pdf
Date Wed, 05 Nov 2008 16:04:26 GMT


I'd like to produce a pdf file with fop from an xml with a xslt file using
the following command:

fop -c fopconf.xconf -xml my.xml -xsl my.xsl -pdf my.pdf

Mac OS X with fop installed via ports does everything right, I get the
expected result as a pdf. But using the same command on a remote debian
system, i get the following error:

"(.:XXXXX): Gtk-WARNING **: cannot open display:"

Where "XXXXX" semms to be a random number that changes on every call.

I looked at the fop-script and enabled the debug mode. This display the
following command under Mac OS X:

	"-c" "fopconf.xconf"
	"-xml" "my.xml"
	"-xsl" "my.xsl"
	"-pdf" "my.pdf"

For working on command line, I have to add the "-Djava.awt.headless=true" in
the fop script as seen above.

Enabling the debug mode on debian I get the following command:

	"-c" "my.xconf"
	"-xml" "my.xml"
	"-xsl" "my.xsl"
	"-pdf" "my.pdf"

The "-Djava.awt.headless=true" was already in the fop script on debian

When i comment the following line in my xslt file everything works fine,
without the Gtk-Warning:

<fo:external-graphic src="myLogo.gif" content-width="32mm"/>

I have tried different image types (gif, bmp, jpg and png) and vector
grapics (svg). I also tried embedding the vector graphic with
<fo:instream-foreign-object/> which works fine on the mac, but not on the
debian system. I always get the Gtk-Warning on the debian system and the pdf
file cannot be opened with a pdf reader.

View this message in context: http://www.nabble.com/Error-while-processing-xml-and-xslt-files-to-pdf-tp20343295p20343295.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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

View raw message