Hi,

I don't know if this is right mailing list for the question, but if anyone
can give me a clue of the problem, it will be really appreciated

I'd like to produce pdf file contains CJK unicode. After including the font
in userconfig.xml, I can run fop and get expected pdf file from xml and xsl
inputs. However, when I try to generate the same result froma servlet, it
failed. I can tell the problem occures at the render of a fo file into pdf
because if I take the fo file generated by the servlet, I can convert it
into pdf in command line such as fop.sh -c userconfig.xml -fo file.fo -pdf
file.pdf.

Here is the font definition I added in userconfig.xml:

 <font metrics-file="/usr/local/share/fonts/uming.xml" kerning="yes"
embed-file="/usr/local/share/fonts/uming.ttf">
    <font-triplet name="UMing" style="normal" weight="normal"/>
 </font>

Below is the part of servlet which does th fo rendering. I tracked the
program, it never came out of driver.run() call. If I don't use the
customized font "UMing", the servlet works without any problem at all.


            new Options(new File("/usr/local/share/fonts/userconfig.xml"));
            Driver driver = new Driver(foFile, out);
            if(log == null) {
             log = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
             MessageHandler.setScreenLogger(log);
            }
            driver.setLogger(log);
            driver.setRenderer(Driver.RENDER_PDF);
            driver.run();


The fop I use is fop-0.20.5.

Thank you in advance.
Liang MA
Software Analyst
--------------------------------------------------
RADARSAT Mission Control Centre
6767, route de l'Aeroport
Saint-Hubert, Quebec
J3Y 8Y9 Canada
Tel: (450) 926-5099
Fax: (450) 926-5127
---------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to