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   ..
 
Uwe
 

Reply via email to