xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vha...@apache.org
Subject cvs commit: xml-batik/sources/org/apache/batik/apps/rasterizer Main.java
Date Mon, 12 Nov 2001 16:33:10 GMT
vhardy      01/11/12 08:33:10

  Modified:    sources/org/apache/batik/apps/rasterizer Main.java
  Log:
  + Fixed the PDF mime type as suggested by Keiron
  + Fixed DPI conversion as reported by Henri Ruini.
  
  Revision  Changes    Path
  1.16      +3 -3      xml-batik/sources/org/apache/batik/apps/rasterizer/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/rasterizer/Main.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Main.java	2001/10/31 09:54:25	1.15
  +++ Main.java	2001/11/12 16:33:10	1.16
  @@ -46,7 +46,7 @@
    * <tt>SVGConverter</tt> which is used to perform the conversion.
    *
    * @author <a href="mailto:vhardy@apache.org">Vincent Hardy</a>
  - * @version $Id: Main.java,v 1.15 2001/10/31 09:54:25 vhardy Exp $
  + * @version $Id: Main.java,v 1.16 2001/11/12 16:33:10 vhardy Exp $
    */
   public class Main implements SVGConverterController {
       /**
  @@ -420,7 +420,7 @@
           mimeTypeMap.put("image/jpeg", DestinationType.JPEG);
           mimeTypeMap.put("image/jpe", DestinationType.JPEG);
           mimeTypeMap.put("image/png", DestinationType.PNG);
  -        mimeTypeMap.put("image/pdf", DestinationType.PDF);
  +        mimeTypeMap.put("application/pdf", DestinationType.PDF);
           mimeTypeMap.put("image/tiff", DestinationType.TIFF);
   
           optionMap.put(CL_OPTION_OUTPUT,
  @@ -566,7 +566,7 @@
                                         throw new IllegalArgumentException();
                                     }
   
  -                                  c.setPixelToMillimeter(2.54f/optionValue);
  +                                  c.setPixelToMillimeter((2.54f/optionValue)*10);
                                 }
   
                                 public String getOptionDescription(){
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Mime
View raw message