Re: FOP Supports Multiple Charset ?
Lalitha Prasad wrote: Hi Pietschmann, font metrics-file=C:\Java\Tomcat-4.1\webapps\glaxo\arialuni.xml This must be a proper URL, not a file name. font-triplet name=ArialUnicodeMS style=normal weight=normal/ font-triplet name=ArialUnicodeMS style=normal weight=bold/ I don't think putting more than a font triple inside a font is going to work, at the very least your bold/italic would look like normal. You'll probably have to get italic/bold versions of the font as well. FOP can't generate italic or bold versions from a normal font. But i am getting the following Exception: exception typenull org.apache.jasper.JasperException Well, you ultimately caught a wrapper exception with no message. That's bad both for your application and for tracking down the cause of the problem. What might be the reason? I have no idea. Wrap a try/catch block around the FOP code and log any exception you get. J.Pietschmann
Re: FOP Supports Multiple Charset ?
Lalitha Prasad wrote: Yes , we can print the special characters using different fonts ( ie. Symbol ). But i need to print original chars also.It seems very difficult to apply muliple font for muliple occurences of special Characters. Do you have any easy method to print one paragraph with different font-families?. If you install and use a user font which has all necessary glyphs, for example the well known Arial Unicode font, you don't have to switch the font family in the FO source. J.Pietschmann
Re: FOP Supports Multiple Charset ?
If the Charset is UTF-8. I got the following exceptions: 1. javax.servlet.ServletException: Invalid byte 1 of 1-byte UTF-8 sequence. and 2. javax.servlet.ServletException: An invalid XML character (Unicode: 0x19) was fou nd in the element content of the document. I have changed the Charset from UTF-8 to ISO-8859-1. Now I cann't print some Special Charactors on the PDF eventhough those characters are displaying in HTML Interfaces. Please help me in this regard. We are using Fop -xsl foo.xsl -xml foo.xml -pdf foo.pdf pattern forgenerating PDF files using FOP. Thanks in advance. Regards, LALITH From: Jeremias Maerki [EMAIL PROTECTED] Reply-To: fop-dev@xmlgraphics.apache.org To: fop-dev@xmlgraphics.apache.org Subject: Re: FOP Supports Multiple Charset ? Date: Tue, 07 Jun 2005 10:22:37 +0200 We'd appreciate if you would post questions on FOP to the fop-user mailing list next time. Thank you. Since we have XML charsets are less of a problem today. I suggest you use UTF-8 as encoding for your XML documents so you have the full Unicode charset available to you which can map every character you will need. Please have a look at the following example FO file: examples/fo/basic/fonts.fo (in the FOP distribution) or http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo?rev=1.3view=markup Some additional info here: http://xml.apache.org/fop/fo.html#xml-special-chars On 07.06.2005 09:26:33 Lalitha Prasad wrote: I need to print Special Charactors in PDF file. ie. Trade Marks and etc. Is it possible to print more than two Charsets usinf FOP?. Jeremias Maerki _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/