Re: Userconfig.xml for FOP within an applet.

2005-02-08 Thread Manoj_Nair
JeremiasSorry about the cross posting. I was not aware of it...Will not be repeated.I could get Japanese fonts in PDF within the applet without having to jar up any of the userconfig.xml,msgothic.xml and msgothic.ttf files. I used a URL to the userconfig.xml file on server from the applet ( signed ). This URL fed as inputstream to the FOP config class in applet. The font metrics and the ttf file all resides on the server.ThanksManoj ThanksManojJeremias Maerki [EMAIL PROTECTED]02/07/2005 01:33 AMPlease respond to fop-user	To:	[EMAIL PROTECTED]	cc:		Subject:	Re: Userconfig.xml for FOP within an applet.Please don't cross-post to fop-dev. All FOP developers are supposed tolisten into the fop-user mailing list.Your approach should work because you can initialize the Optionsinstance not only from a java.io.File but also from ajava.io.InputStream. Just try it.On 07.02.2005 02:11:31 Manoj_Nair wrote: As you might know I have successfully got the Japanese fonts to be displayed on PDF by using the userconfig.xml file to load the MSGOTHIC.TTF fonts. In this case I was running a servlet which used FOP to convert the XML file on the webserver ( weblogic) to PDF and then open it using acrobat.  I want to do the same thing within an applet. A few months back I could use FOP within an applet to convert XML residing on the server to PDF and then send the resulting PDF to the printqueue on the clients default printer. This works perfectly.   Now my question is I want FOP within the applet to recognize Japanese character sets. My approach is to have the userconfig.xml, msgothic.ttf and msgothic.xml ( font metrics ) files in the same jar file as the Applet itself. Would this work?  Can I just load the userconfig.xml file from the jar file using the classloader and then call FOP ? I will be trying this next week and just wanted to know your opinion.Jeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

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



Userconfig.xml for FOP within an applet.

2005-02-07 Thread Manoj_Nair
As you might know I have successfully got the Japanese fonts to be displayed on PDF by using the userconfig.xml file to load the MSGOTHIC.TTF fonts. In this case I was running a servlet which used FOP to convert the XML file on the webserver ( weblogic) to PDF and then open it using acrobat.I want to do the same thing within an applet. A few months back I could use FOP within an applet to convert XML residing on the server to PDF and then send the resulting PDF to the printqueue on the clients default printer. This works perfectly. Now my question is I want FOP within the applet to recognize Japanese character sets. My approach is to have the userconfig.xml, msgothic.ttf and msgothic.xml ( font metrics ) files in the same jar file as the Applet itself. Wouldthis work? Can I just load theuserconfig.xml file from the jar file using the classloader and then call FOP ? I will be trying this next week and just wanted to know your opinion.ThanksManoj

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



Re: Userconfig.xml for FOP within an applet.

2005-02-07 Thread Jeremias Maerki
Please don't cross-post to fop-dev. All FOP developers are supposed to
listen into the fop-user mailing list.

Your approach should work because you can initialize the Options
instance not only from a java.io.File but also from a
java.io.InputStream. Just try it.

On 07.02.2005 02:11:31 Manoj_Nair wrote:
 As you might know I have successfully got the Japanese fonts to be
 displayed on PDF  by using the userconfig.xml file to load the
 MSGOTHIC.TTF fonts. In this case I was running a servlet which used FOP
 to convert the XML file on the webserver ( weblogic) to PDF and then
 open it using acrobat.
 
 I want to do the same thing within an applet. A few months back I could
 use FOP within an applet to convert XML residing on the server to PDF
 and then send  the resulting PDF to the printqueue on the clients
 default printer. This works perfectly. 
 
 Now my question is I want FOP within the applet to recognize Japanese
 character sets. My approach is to have the userconfig.xml, msgothic.ttf
 and msgothic.xml ( font metrics ) files in the same jar file as the
 Applet itself. Would this work? 
 Can I just load the  userconfig.xml file from the jar file using the
 classloader and then call FOP ? I will be trying this next week and just
 wanted to know your opinion.


Jeremias Maerki


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