Oh, I didn't think about that. Sorry. Just include xmlgraphics-commons.jar in the classpath, too. Those classes are not folded into the allinone JAR because Batik is expected to add this dependency soon. HTH
On 14.11.2008 13:29:25 Martin Jacobson wrote: > I expect I'm being really stupid, but I have been using the > batik-rasterizer.jar to test the conversion, as follows... > > Martin:batik-1.7 martin$ java -jar batik-rasterizer.jar -bg 0.4.12.25 > -m application/pdf -d ~/Desktop/processMP.pdf ~/Desktop/processMP.svg > About to transcode 1 SVG file(s) > > Converting processMP.svg to /Users/martin/Desktop/processMP.pdf ... ... > success > > but then, I do this > > Martin:batik-1.7 martin$ mv lib/pdf-transcoder.jar lib/pdf-transcoder.jar.old > Martin:batik-1.7 martin$ mv lib/fop-transcoder-allinone.jar > lib/pdf-transcoder.jar > > and this happens > > Martin:batik-1.7 martin$ java -jar batik-rasterizer.jar -bg 0.4.12.25 > -m application/pdf -d ~/Desktop/processMP.pdf ~/Desktop/processMP.svg > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/xmlgraphics/image/loader/ImageContext > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:164) > at > org.apache.batik.apps.rasterizer.DestinationType.getTranscoder(DestinationType.java:96) > at > org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:690) > at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938) > at org.apache.batik.apps.rasterizer.Main.main(Main.java:992) > Martin:batik-1.7 martin$ > > Any clue? The batik build.xml doesn't make batik-rasterizer, so I'm > not sure how to progress. If I should be bugging the batik people, > please tell me! > > thanks > Martin > > 2008/11/13 Jeremias Maerki <[EMAIL PROTECTED]>: > > Martin, > > > > you will find that text rendering to PDF has improved a lot since the > > last Batik release. If you remove the pdf-transcoder.jar from the > > classpath and instead add FOP 0.95 (including dependencies) [1], you'll > > get virtually all text rendered as text instead of shapes. Please try it > > out, and if it doesn't work to your satisfaction, I'll try to get you up > > to speed to make further improvements. > > > > [1] You can also download the 0.95 or Trunk sources and build > > fop-transcoder-allinone.jar yourself(generated by default) which is > > basically the equivalent of pdf-transcoder.jar. > > > > On 13.11.2008 17:16:02 Martin Jacobson wrote: > >> I am a newbie on this list, so please forgive me if this has been > >> discussed before (I found nothing in the archive, however)... > >> > >> I have a cartographic application and I want to generate the output in > >> PDF format. For many reasons, I am using SVG as an intermediate > >> format, and I have been using the batik-rasterizer to convert to PDF. > >> > >> batik-rasterizer relies on FOP code for the pdf conversion, which is > >> why I'm here. > >> > >> It all works, with the notable exception of road names, which are > >> implemented in SVG as text on a path. I have read that this conversion > >> isn't in the current version of FOP. Is anyone working on this? If so, > >> what state is it in? If not, can someone tell me where I should start > >> from if I were to try implementing it myself? [I'm an experienced Java > >> developer, but I know v.little about PDF, and nothing about the fop > >> codebase] > >> > >> Thanks, > >> Martin > >> > > > > > > > > Jeremias Maerki > > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
