On the command line you're starting Batik using the -jar option. This
option primarily loads the batik-rasterizer.jar into the classpath but
also all the JAR files specified in the batik-rasterizer.jar's
meta-inf/manifest.mf file. Open the JAR file in your favourite ZIP-Tool
and have a look at the manifest.mf file.

So what you're missing is at least the pdf-transcoder.jar in your
classpath found in the lib directory.

I hope that helps.

On 10.09.2004 20:08:45 Uwe Abel wrote:
> Hello,
> i try to convert svg to pdf.
>  
>     org.apache.batik.apps.rasterizer.SVGConverter myRaster = new
> org.apache.batik.apps.rasterizer.SVGConverter();
>     File tmppng = File.createTempFile("demo",".pdf",tmppath);
>     String[] source = {"demo.svg"};
>     myRaster.setSources(source);
>  
> myRaster.setDestinationType(org.apache.batik.apps.rasterizer.DestinationType
> .PDF);
>     myRaster.setDst(tmppng);
>     myRaster.execute();
>    
>  
> but is there the following error :
> org.apache.batik.apps.rasterizer.SVGConverterException: Error: cannot access
> transcoder for image of type application/pdf
>  
> which I must do ?
>  
> I know that i have to use fop, but how ?
>  
> On comand line : java -jar batik-rasterizer.jar -m application/pdf  demo.svg
> works very well   ..


Jeremias Maerki


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

Reply via email to