Initially i tried to changed userconfig.xml (as mentioned in documentation http://xml.apache.org/fop/configuration.html ) But got error so also tried changing config.xml.
The thing i was missing was
fop -c userconfig.xml ...
This part - path - i was specifying wrongly - but finally i got it correctly
Thanks to all who helped in my all previous posts. At last i could create one proper pdf document in English / Chinese. Of-course i am testing it through command line prompt. Now will be shifting it to Struts,
regards
Manisha
Manisha Sathe <[EMAIL PROTECTED]> wrote:
1)Finally i could resolve the problem. It was a class path set up problem. I set the classpath separately and then rund:\fop-0.20.5>org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfmssong.xmlAt least it did not give me error and create ttfmssong.xml file.2)Later opened <fopBaseDir>/conf/config.xml and added inside it<font metrics-file="D:\fop-0.20.5\ttfmssong.xml" embed-file="C:\WINNT\Fonts\mssong.ttf" kerning="yes">
<font-triplet name="MSSong" style="normal" weight="normal"/>
<font-triplet name="MSSong" style="normal" weight="bold"/>
<font-triplet name="MSSong" style="italic" weight="normal"/>
<font-triplet name="MSSong" style="italic" weight="bold"/>
</font>3)Inside my .xsl file i am using MSSong font but still i am gettingunknown font MSSong,normal,normal so defined defaulted font....Pls Pls help me, i really need that font to display Chinese characters.Thanks in advanceManisha
Manisha Sathe <[EMAIL PROTECTED]> wrote:I am trying to set it up MS Song Font now1)I installed mssong font on my machine (mssong.ttf)2)Opend dos command promptd:\fop-0.20.5> java -cp build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar; lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfcm.xmlBut i am getting following errorException in Thread "main" java.lang.NoClassDefFoundError lib/xercesImpl-2/2/1/jar;lib\xalan-2/4/1/jarI do not know how the name of jar files are getting changed. What am i missing ?regardsManisha
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.