Re: Jfor 0.52 : external graphics

Anatoly Osiko <[email protected]> Wed, 05 Jun 2002 11:54:05 +0930
Newsgroups gmane.text.xml.jfor.general
Organization Herenow Solutions Pty Ltd
Message-ID <[email protected]>
Answering to my own message ....

Addition of this property seems to solve the problem
-Djava.awt.headless=true 

Reference:
http://www.sitraka.com/software/support/jclass/docs/JClassServerViews/docs/schart/jc_schart-3.html#64635

/opt/java/j2sdk1.4.0_01/bin/java -Djava.awt.headless=true -classpath
/home/anatoly/data/dev2.5/external/jfor/lib/xerces-1.2.3.jar:/home/anatoly/data/dev2.5/external/jfor/lib/jfor.jar
ch.codeconsult.jfor.main.CmdLineConverter /tmp/rep6869120268.fo
/tmp/rep6869120268.rtf
jfor V0.5.2 - see http://www.jfor.org
Converting XSL:FO file '/tmp/rep6869120268.fo' to RTF output
'/tmp/rep6869120268.rtf'...
jfor.INFO:jfor V0.5.2 - setting up conversion...
jfor.INFO:Parsing xsl:fo document...
jfor.INFO:Writing out RTF...
jfor.INFO:Writing image
'file:/home/anatoly/data/dev2.5/software/web/images/shell.gif'.
jfor.INFO:Writing image
'file:/home/anatoly/data/dev2.5/software/web/images/ibflogo.jpg'.
........
...........
jfor.INFO:Done converting xsl:fo to RTF.
jfor.DEBUG:conversion took 3652 milliseconds.
Done writing RTF output '/tmp/rep6869120268.rtf'.

Anatoly Osiko wrote:
> 
> [email protected] wrote:
> >
> 
> I tried this:
> 
> /opt/java/j2sdk1.4.0_01/bin/java -classpath
> /home/anatoly/data/dev2.5/external/jfor/lib/xerces-1.2.3.jar:/home/anatoly/data/dev2.5/external/jfor/lib/jfor.jar
> ch.codeconsult.jfor.main.CmdLineConverter /tmp/rep5110047039.fo
> /tmp/rep5110047039.rtf
> 
> jfor V0.5.2 - see http://www.jfor.org
> Converting XSL:FO file '/tmp/rep5110047039.fo' to RTF output
> '/tmp/rep5110047039.rtf'...
> jfor.INFO:jfor V0.5.2 - setting up conversion...
> jfor.INFO:Parsing xsl:fo document...
> jfor.INFO:Writing out RTF...
> jfor.INFO:Writing image
> 'file:/home/anatoly/data/dev2.5/software/web/images/shell.gif'.
> 
> The show stops here - I get zero byte *.rtf file as a result - just as
> with jdk 1.3.1_01
> 
> It's Linux RedHat 7.1 OS.
> 
> > >Might be that this call needs access to physical graphics resources
> > >(display?) which are not available in your CGI environment.
> > >
> > >If that's the case, using the PJA toolkit (http://www.eteks.com/pja/en/)
> > >should help. This toolkit can replace the standard AWT libraries, and doesn't
> > >need any native graphics resources to do its work.
> >
> > Also, one of the features of JDK 1.4 is that it is 'headless',
> > avoiding the need for physical graphics resources all together.
> >
> > cheers,
> > David.
> > --
> > David Bullock -  [email protected]  +61 4 0290 1228
> > Developer  http://www.lisasoft.com/              --| 'a clear goal +     |--
> > Chairman   http://www.sa.auug.org.au/            --|  a sound strategy + |--
> > Activist   http://www.ajug.org.au/sajug/         --|  daily action =     |--
> > Himself    http://www.dawnbreaks.net/people/db/  --|  success' S.Maguire |--
> >
> > _______________________________________________________________
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > _______________________________________________
> > jfor-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jfor-users
> 
> --
> Anatoly Osiko
> Analyst Programmer
> Reservoir Team Ltd.
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> _______________________________________________
> jfor-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jfor-users

-- 
Anatoly Osiko
Analyst Programmer
Reservoir Team Ltd.

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm