Re: Glyphs in TrueType font file not found by FOP
For FOP, what you need is not a glyph index but a Unicode character index. 1509 in hex is 05E5 which in Unicode is "HEBREW LETTER FINAL TSADI", so I don't think you've got the right index if you want to create Arabic text. On 09.10.2006 03:00:18 kev martin wrote: > Using FOP 0.92. > > I have created an XML file to use the the arial.ttf font file, like this: > > java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons- > logging-1.0.4.jar;lib\commons-io-1.1.jar > org.apache.fop.fonts.apps.TTFReaderC:\windows\fonts\arial.ttf > arial.xml > > I have written some code for Arabic charcter shaping, which tells me that > the glyph I need has glyph index 1509. Using FontLab Studio ( > www.fontlab.com), and opening arial.ttf, I can see that this is correct, and > the glyph I want is indeed at index 1509. > > But the arial.xml file has no glyph index 1509, and I am unable to > understand why. I have checked the FOP source against the TrueType > specification and I cannot see the problem does anyone have any ideas ? > > Thanks > Kev Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange FOP error
That's really strange. Did you delete avalon-framework-4.2.0.jar in the lib directory? For me and many others calling FOP using fop.bat from the root directory of a FOP 0.92beta installation on Windows just works. Maybe you changed something in your installation. I'd extract a fresh copy of FOP from the binary distribution into a new directory and retry. On 09.10.2006 07:35:16 Nicol Bolas wrote: > > > Jeremias Maerki-2 wrote: > > > > You're missing some JAR files in the classpath. Judging from the error > > message at least avalon-framework.jar is missing. Please tell us how you > > start FOP. Are you using the fop.bat script that comes with FOP? Are you > > using "java -jar fop.jar"? Or are you setting up the classpath yourself? > > > > I'm using fop.bat. > > > > > Jeremias Maerki-2 wrote: > > > > The method Main.startFOPWithDynamicClasspath() is only called if some > > dependencies FOP needs are missing on the classpath. In this case, FOP > > tries to find the dependencies itself. But that only works if the > > current directory (the directory where you start the JVM from) is the > > root directory of your FOP installation. > > > > If you start FOP using fop.bat from the root directory of your FOP > > installation, it should work. Would you please test that? > > > > Running fop.bat from the FOP directory gives the second error message I > reported. > > On 08.10.2006 07:57:34 Nicol Bolas wrote: > > > > I'm getting some strange errors with the 0.92beta release of FOP. I'm able > > to > > use 0.91beta just fine, but 0.92beta gives me the following errors: > > > > "Unable to start FOP: > > java.lang.RuntimeException: fop.jar not found in directory: G:\ (or below) > > at org.apache.fop.cli.Main.getJARList(Main.java:57) > > at > > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:117) > > at org.apache.fop.cli.Main.main(Main.java:192)" > > > > If I'm in the FOP directory when I run it, I get different errors: > > > > "java.lang.reflect.InvocationTargetException > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at > > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:125) > > at org.apache.fop.cli.Main.main(Main.java:192) > > Caused by: java.lang.NoClassDefFoundError: > > org/apache/avalon/framework/configuration/ConfigurationException > > at > > org.apache.fop.cli.CommandLineOptions.(CommandLineOptions.java:90) > > at org.apache.fop.cli.Main.startFOP(Main.java:146)" > > > > I'm running on WinXP. > > > > Any ideas? > Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange FOP error
Jeremias Maerki-2 wrote: > > You're missing some JAR files in the classpath. Judging from the error > message at least avalon-framework.jar is missing. Please tell us how you > start FOP. Are you using the fop.bat script that comes with FOP? Are you > using "java -jar fop.jar"? Or are you setting up the classpath yourself? > I'm using fop.bat. Jeremias Maerki-2 wrote: > > The method Main.startFOPWithDynamicClasspath() is only called if some > dependencies FOP needs are missing on the classpath. In this case, FOP > tries to find the dependencies itself. But that only works if the > current directory (the directory where you start the JVM from) is the > root directory of your FOP installation. > > If you start FOP using fop.bat from the root directory of your FOP > installation, it should work. Would you please test that? > Running fop.bat from the FOP directory gives the second error message I reported. On 08.10.2006 07:57:34 Nicol Bolas wrote: > > I'm getting some strange errors with the 0.92beta release of FOP. I'm able > to > use 0.91beta just fine, but 0.92beta gives me the following errors: > > "Unable to start FOP: > java.lang.RuntimeException: fop.jar not found in directory: G:\ (or below) > at org.apache.fop.cli.Main.getJARList(Main.java:57) > at > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:117) > at org.apache.fop.cli.Main.main(Main.java:192)" > > If I'm in the FOP directory when I run it, I get different errors: > > "java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:125) > at org.apache.fop.cli.Main.main(Main.java:192) > Caused by: java.lang.NoClassDefFoundError: > org/apache/avalon/framework/configuration/ConfigurationException > at > org.apache.fop.cli.CommandLineOptions.(CommandLineOptions.java:90) > at org.apache.fop.cli.Main.startFOP(Main.java:146)" > > I'm running on WinXP. > > Any ideas? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Strange-FOP-error-tf2403581.html#a6711867 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Glyphs in TrueType font file not found by FOP
Hi I am using FOP 0.92. I have created an XML file to use the the arial.ttf font file, like this: java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar org.apache.fop.fonts.apps.TTFReader C:\windows\fonts\arial.ttf arial.xml I have written some code for Arabic charcter shaping, which tells me that the glyph I need has glyph index 1509. Using FontLab Studio (www.fontlab.com), and opening arial.ttf, I can see that this is correct, and the glyph I want is indeed at index 1509. But the arial.xml file has no glyph index 1509, and I am unable to understand why. I have checked the FOP source against the TrueType specification and I cannot see the problem – does anyone have any ideas ? Thanks Kev
Glyphs in TrueType font file not found by FOP
Using FOP 0.92. I have created an XML file to use the the arial.ttf font file, like this: java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar org.apache.fop.fonts.apps.TTFReader C:\windows\fonts\arial.ttf arial.xml I have written some code for Arabic charcter shaping, which tells me that the glyph I need has glyph index 1509. Using FontLab Studio (www.fontlab.com), and opening arial.ttf, I can see that this is correct, and the glyph I want is indeed at index 1509. But the arial.xml file has no glyph index 1509, and I am unable to understand why. I have checked the FOP source against the TrueType specification and I cannot see the problem – does anyone have any ideas ? Thanks Kev
Re: conversion of xml data to pdf
Andreas L Delmelle wrote: On Oct 8, 2006, at 15:45, Andreas L Delmelle wrote: It appears that either these bugs simply get ignored by Oracle (*), or no-one takes the time to file them and supply the Oracle-devs with the information they really need to address these problems. It just occurred to me: to make sure which of the two options applies here, maybe someone can test this with Oracle 10g and see if the bug is still present in that release. Maybe it has already been fixed, but not in Oracle 9... Been there, done that with Oracle 10.1.3, Oracle XML-parsing bugs still exist there too. The main solution, which worked well for me, is to switch to the Apache Xerces libraries[1]. Glen [1] http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14433/classload.htm#CIHFJEEF - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: conversion of xml data to pdf
On Oct 8, 2006, at 15:45, Andreas L Delmelle wrote: It appears that either these bugs simply get ignored by Oracle (*), or no-one takes the time to file them and supply the Oracle-devs with the information they really need to address these problems. It just occurred to me: to make sure which of the two options applies here, maybe someone can test this with Oracle 10g and see if the bug is still present in that release. Maybe it has already been fixed, but not in Oracle 9... Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: conversion of xml data to pdf
On Oct 8, 2006, at 12:33, Srinivas Akula wrote: I am using Fop 0.2.5., it is working fine in tomcat 5.0, but when the same application has been deployed in oracle 9i apache server, the application is throwing Null Pointer Exception,. The Problem i am getting is at Transformer.transform(Source, Result). I appriciate you, if you could please provide me the solution. This looks a lot like the bug in Oracle's XSLT processor that has popped up a few times now on this list... There are two possible solutions: - replace Oracle's XML/XSLT combo with Xerces (XML) and Xalan/Saxon (XSLT) - file a bug with Oracle, and insist on the problem being resolved at their end It appears that either these bugs simply get ignored by Oracle (*), or no-one takes the time to file them and supply the Oracle-devs with the information they really need to address these problems. (*) Hard to believe, but it does happen with commercial software. Ask Jeremias about his experience with filing bugs against Adobe Acrobat. :) Plain commercial logic: if you're not a large enough customer, the bug will end up way at the bottom of their priority list. In any case, nothing that can be done about it from the FOP side, I'm afraid... Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
conversion of xml data to pdf
Hello Sir, I am using Fop 0.2.5., it is working fine in tomcat 5.0, but when the same application has been deployed in oracle 9i apache server, the application is throwing Null Pointer Exception,. The Problem i am getting is at Transformer.transform(Source, Result). I appriciate you, if you could please provide me the solution. I will wait for your earliest response. Thanks and Regars, A.Srinivas A.Srinivas. Tel:24553502 Get your email and more, right on the new Yahoo.com
Re: Error when using FOP embedded using Saxon for transformation
Yes, that fixes it. On 08.10.2006 12:03:40 Florent Georges wrote: > Jeremias Maerki wrote: > > Hi > > > Seems to be a problem in Saxon. When I last tested with Saxon > > 8.7.1, everything was fine. But I downloaded 8.8 and I can now > > reproduce your problem. So it's a regression in Saxon. The SAX > > startDocument() method is somehow called twice although it must > > not be. > > BTW, Mike "released" a snapshot of the SVN repository on the > 29th of September. Maybe this fix the problem? See: > > http://sourceforge.net/mailarchive/message.php?msg_id=36968233 Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when using FOP embedded using Saxon for transformation
Jeremias Maerki wrote: Hi > Seems to be a problem in Saxon. When I last tested with Saxon > 8.7.1, everything was fine. But I downloaded 8.8 and I can now > reproduce your problem. So it's a regression in Saxon. The SAX > startDocument() method is somehow called twice although it must > not be. BTW, Mike "released" a snapshot of the SVN repository on the 29th of September. Maybe this fix the problem? See: http://sourceforge.net/mailarchive/message.php?msg_id=36968233 Regards, --drkm ___ Découvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange FOP error
You're missing some JAR files in the classpath. Judging from the error message at least avalon-framework.jar is missing. Please tell us how you start FOP. Are you using the fop.bat script that comes with FOP? Are you using "java -jar fop.jar"? Or are you setting up the classpath yourself? The method Main.startFOPWithDynamicClasspath() is only called if some dependencies FOP needs are missing on the classpath. In this case, FOP tries to find the dependencies itself. But that only works if the current directory (the directory where you start the JVM from) is the root directory of your FOP installation. If you start FOP using fop.bat from the root directory of your FOP installation, it should work. Would you please test that? Good luck. On 08.10.2006 07:57:34 Nicol Bolas wrote: > > I'm getting some strange errors with the 0.92beta release of FOP. I'm able to > use 0.91beta just fine, but 0.92beta gives me the following errors: > > "Unable to start FOP: > java.lang.RuntimeException: fop.jar not found in directory: G:\ (or below) > at org.apache.fop.cli.Main.getJARList(Main.java:57) > at > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:117) > at org.apache.fop.cli.Main.main(Main.java:192)" > > If I'm in the FOP directory when I run it, I get different errors: > > "java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:125) > at org.apache.fop.cli.Main.main(Main.java:192) > Caused by: java.lang.NoClassDefFoundError: > org/apache/avalon/framework/configuration/ConfigurationException > at > org.apache.fop.cli.CommandLineOptions.(CommandLineOptions.java:90) > at org.apache.fop.cli.Main.startFOP(Main.java:146)" > > I'm running on WinXP. > > Any ideas? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]