xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Abel" <uwe-a...@web.de>
Subject SVG to PDF / Fop ?
Date Fri, 10 Sep 2004 18:08:45 GMT
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
 

Mime
View raw message