Manifest Classpaths
Hi, Im successfully running FOP, but I dont understand how the Manifest classpath is organised (WSAD reports missing JAR files on the manifest classpath) eg) FOP manifest classpath has references to xercesImp*.jar and Xalan*.jar (Where * is a version). When I open the Xalan-X.x.x.jar file, its manifest classpath is looking for Xerces.jar. Can someone explain please how this works, because WSAD reports these missing classpath entries as Errors (also looking for jaxp.jar and crimson.jar) and cannot stand looking at errors in my workspace if they dont actually represent Errors. anyway, thanks Trav ... _ Credit Card. Apply online. 60 sec response. Must be over 18. AU only: http://ad.au.doubleclick.net/clk;11046970;10638934;f?http://www.anz.com/aus/promo/first0105ninemsn/default.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manifest Classpaths
Bloody WSAD, always complaining and making trouble. I'd simply remove the manifest classpath entries from the JAR. These entries only make sense when you run FOP from the command-line using java -jar. On 02.02.2005 03:56:25 Travis Morgan wrote: Hi, Im successfully running FOP, but I dont understand how the Manifest classpath is organised (WSAD reports missing JAR files on the manifest classpath) eg) FOP manifest classpath has references to xercesImp*.jar and Xalan*.jar (Where * is a version). When I open the Xalan-X.x.x.jar file, its manifest classpath is looking for Xerces.jar. Can someone explain please how this works, because WSAD reports these missing classpath entries as Errors (also looking for jaxp.jar and crimson.jar) and cannot stand looking at errors in my workspace if they dont actually represent Errors. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XML --- PDF Japanese
I am creating XML files which in turn gets parsed through a FOP processor to create PDF files. It works fine when the data is in English however for Japanese data all I get is a bunch of square boxes in place of Kanji fonts. I have setup the Kanji fonts on my machine and also can view Japanese text in my regular application with no problem. The problem is when the data gets converted to XML and then to PDF...Somewhere the data is getting messed up... I checked the XML file and the japanese fonts are present without any distortions. Check (See attached file: INJCV00444.xml) Is the FOP parser messing things up? Any idea whats happening ? Thanks Manoj INJCV00444.xml Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML --- PDF Japanese
Just a thought: Did you set up the necessary font-metrics file? You can find an example (called cid-fonts.fo) in the examples\fo\advanced (Windows) or examples/fo/advanced (Linux or Unix) directory. Jay Bryant Bryant Communication Services (on contract at Syngergistic Solution Technologies) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML --- PDF Japanese
Jay Thanks for that tip. My machine has the MSGothic.ttc font file which I understand is used for Japanese characters. 1) From the MSGothic.ttc file, I created the MSGothic.xml file in the /conf/ directory. 2) I changed the userconfig.xml file to have the Japanese fonts defined as font metrics-file=msgothic.xml embed-file=D:\winnt\font\msgothic.ttc kerning=yes font-triplet name=Gothic style=normal weight=normal/ font-triplet name=Gothic style=normal weight=bold/ font-triplet name=Gothic style=italic weight=normal/ font-triplet name=Gothic style=italic weight=bold/ /font font metrics-file=msmincho.xml embed-file=Cyberbit.ttf kerning=yes font-triplet name=Mincho style=normal weight=normal/ font-triplet name=Mincho style=normal weight=bold/ font-triplet name=Mincho style=italic weight=normal/ font-triplet name=Mincho style=italic weight=bold/ /font 3) In my case FOP is called on the server side ( weblogic ) which has FOP.JAR in classpath. XSLTInputHandler input = new XSLTInputHandler(xmlFile, new File(xslParam)); try { ByteArrayOutputStream out = new ByteArrayOutputStream(); response.setContentType(CONTENT_TYPE); Driver driver = new Driver(); String OS = System.getProperty(os.name); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); driver.render(input.getParser(), input.getInputSource()); byte[] content = out.toByteArray(); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); System.out.println(renderXML done); } catch (Exception ex) { ex.printStackTrace(); throw new ServletException(ex); } My question is how would FOP on weblogic know how to use the new userconfig.xml file. I tried to add / update the MSGothic.xml / userconfig.xml in FOP.JAR but I get read/write permissions errors on the jar file. Let me know... Thanks Manoj [EMAIL PROTECTED] To: [EMAIL PROTECTED] 2005/02/02 13:25 cc: Please respond toSubject: Re: XML --- PDF Japanese fop-user Just a thought: Did you set up the necessary font-metrics file? You can find an example (called cid-fonts.fo) in the examples\fo\advanced (Windows) or examples/fo/advanced (Linux or Unix) directory. Jay Bryant Bryant Communication Services (on contract at Syngergistic Solution Technologies) - 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]