On Sat, Sep 04, 2004 at 11:39:15AM +0200, Jeremias Maerki wrote: > Please send a patch when you're finished.
Here it is :) It was really not difficult. I don't know if I should have changed anything else, but with this patch the code compiles and the rasterizer produces EPS files. (Don't try it on a SVG file with gradients though - there will be a result but it won't look pretty.) Jeremias, thanks for your help! Regards, Felix
Index: sources/org/apache/batik/apps/rasterizer/DestinationType.java =================================================================== RCS file: /home/cvspublic/xml-batik/sources/org/apache/batik/apps/rasterizer/DestinationType.java,v retrieving revision 1.5 diff -r1.5 DestinationType.java 23a24 > import org.apache.fop.render.ps.EPSTranscoder; 37a39 > public static final String EPS_STR = "application/postscript"; 42a45 > public static final int EPS_CODE = 4; 47a51 > public static final String EPS_EXTENSION = ".eps"; 56a61,63 > public static final DestinationType EPS > = new DestinationType(EPS_STR, EPS_CODE, EPS_EXTENSION); > 101a109,110 > case EPS_CODE: > return new EPSTranscoder(); 114c123 < return new DestinationType[]{PNG, JPEG, TIFF, PDF}; --- > return new DestinationType[]{PNG, JPEG, TIFF, PDF, EPS}; 126a136,137 > case EPS_CODE: > return EPS; Index: sources/org/apache/batik/apps/rasterizer/Main.java =================================================================== RCS file: /home/cvspublic/xml-batik/sources/org/apache/batik/apps/rasterizer/Main.java,v retrieving revision 1.28 diff -r1.28 Main.java 497a498 > mimeTypeMap.put("application/postscript", DestinationType.EPS);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]