Thanks Hussein for all the help, We compared userguide.fo and other fo files to get exact problem. It was very time consuming process because we were deleteing some element and then testing RTF functionality for userguide.fo which have 7000 lines. Finally we found that it is giving error for element those have <fo:external-graphic> element. We tried to change path of src attribute but always it is giving same error.
Could you please help us to debug issue with <fo:external-graphic> and why it is failing in our linux box. is there any setting to connect to third party URL from linux or some other issue? Regards Jay ________________________________________ From: Hussein Shafie [[email protected]] Sent: 06 December 2010 20:15 To: Gupta, Jayberdhan Cc: Tolhurst, Chris; Sprauel, Nicolas; [email protected]; Sharma, Vinod Subject: Re: [XFC] FO to RTF not suppring in Linux box --> Your email does not explain how to reproduce the problem. Please remeber that I did what's described below and it worked fine for me. By the way, the configuration I used this morning is openSUSE 11.1, KDE 4 or no Windowing system at all (console only), Sun/Oracle Java 1.5.0_22. The difference between userguide.fo and the other sample .fo file is that userguide.fo references a few PNG image files. So what? Such PNG image files are processed using javax.imageio.ImageIO, which does not require running a Windowing system. --> I'm almost sure that the problem is caused by *your* working environment[*] because: [1] XMLmind XSL-FO Converter embedded in XMLmind XSL Server runs on our *really* *headless* Linux server (hosted by OVH -- http://www.ovh.co.uk/) and is daily used by dozens of visitors. (Give it a try by clicking on any of the icons found at the top of any of the Web pages of the http://www.xmlmind.com/foconverter/ site.) [2] xfc.jar and all the other .jar shipped with our distributions have no dependency whatsoever with GTK. --- [*] Hints: * Your are using an obsolete or bugged or non-Sun/Oracle Java runtime. * OR you are using a customized Sun/Oracle Java runtime (i.e. you have copied custom .jar files to the so-called endorsed directories of the Java runtime.) * OR your Linux box is rather strangely configured. On 12/06/2010 03:02 PM, [email protected] wrote: > Thanks Hussein, > > Previoushly we were executing fo2rtf command with userguide.fo and it was > giving same error. Now we executed by using ./make_sample and it is creating > RTF file for 3 sample fo files but for userguide.fo it is giving same error. > > Please see attached / below error. > > > > [dm...@syd-onlweb-p53 samples]$ ./make_samples > Converting font-attributes.fo to rtf... > Converting font-attributes.fo to word.xml... > Converting font-attributes.fo to odt... > Converting font-attributes.fo to docx... > Converting lists.fo to rtf... > Converting lists.fo to word.xml... > Converting lists.fo to odt... > Converting lists.fo to docx... > Converting tables.fo to rtf... > Converting tables.fo to word.xml... > Converting tables.fo to odt... > Converting tables.fo to docx... > Converting userguide.fo to rtf... > > (.:21771): Gtk-WARNING **: cannot open display: > Converting userguide.fo to word.xml... > > (.:21777): Gtk-WARNING **: cannot open display: > Converting userguide.fo to odt... > > (.:21783): Gtk-WARNING **: cannot open display: > Converting userguide.fo to docx... > > (.:21789): Gtk-WARNING **: cannot open display: > > > > @Chris / Nick, > > Could you please provide exact configuration/ version of linux box so Hussein > can reverify. > > > > > -- > XMLmind FO Converter Support List > [email protected] > http://www.xmlmind.com/mailman/listinfo/xfc-support > Regards > Jay > ________________________________________ > From: Hussein Shafie [[email protected]] > Sent: 06 December 2010 18:10 > To: Gupta, Jayberdhan > Cc: Sharma, Vinod; Tolhurst, Chris; Sprauel, Nicolas > Subject: RE: FO to RTF not suppring in Linux box > > [email protected] wrote: >> I downlaoded xmlmind personal edition(xfc_perso_java-4_4_1.zip) from site. >> When I running fo2rtf.batch file from window XP then it is generating rtf >> file but when I run fo2rtf(sh file) with same fo file into linux box then >> getting below message >> >> GTK - warning **: Can not open display. > > In principle, the fo2XXX shell scripts do not need an X-Window server in > order to run. ("display" mean "X-Window server" which Linux's standard > Windowing system.) > > > > >> >> Please let me know if some setting changes are required at linux box. >> >> Thanks in advance. >> >> Regards >> Jay >> >> > > I didn't manage to reproduce this problem. Therefore, I'm sorry but I > cannot help you. > > In order to reproduce the above problem, I've tried this: > > $ cd XFC_install_dir/samples/ > $ ./make_samples > > make_sample is a shell script which invokes all the fo2XXX shell scripts. > > I've tried this on *two* different Linux boxes, one running X-Window, > the other being a headless, console only, linux box. Everything worked > fine for me. > -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

