keiron      01/08/09 06:51:56

  Modified:    src/org/apache/fop/datatypes Length.java
               src/org/apache/fop/render/pdf PDFRenderer.java
               src/org/apache/fop/render/ps PSRenderer.java
  Log:
  
  
  Revision  Changes    Path
  1.12      +3 -3      xml-fop/src/org/apache/fop/datatypes/Length.java
  
  Index: Length.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Length.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Length.java       2001/07/30 20:29:19     1.11
  +++ Length.java       2001/08/09 13:51:55     1.12
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Length.java,v 1.11 2001/07/30 20:29:19 tore Exp $
  + * $Id: Length.java,v 1.12 2001/08/09 13:51:55 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -59,9 +59,9 @@
           if (unit.equals("in"))
               dvalue = dvalue * 72;
           else if (unit.equals("cm"))
  -            dvalue = dvalue * 28.35;
  +            dvalue = dvalue * 28.3464567;
           else if (unit.equals("mm"))
  -            dvalue = dvalue * 2.84;
  +            dvalue = dvalue * 2.83464567;
           else if (unit.equals("pt"))
               dvalue = dvalue;
           else if (unit.equals("pc"))
  
  
  
  1.80      +4 -2      xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java
  
  Index: PDFRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- PDFRenderer.java  2001/08/06 09:43:07     1.79
  +++ PDFRenderer.java  2001/08/09 13:51:55     1.80
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFRenderer.java,v 1.79 2001/08/06 09:43:07 keiron Exp $
  + * $Id: PDFRenderer.java,v 1.80 2001/08/09 13:51:55 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -872,7 +872,9 @@
            * Returns a customized the pixel to mm factor.
            */
           public float getPixelToMM() {
  -            return 0.264583333333333333333f;    // 72 dpi
  +            // this is set to 72dpi as the values in fo are 72dpi
  +            return 0.35277777777777777778f; // 72 dpi
  +            // return 0.26458333333333333333333333333333f;    // 96dpi
           }
   
           /**
  
  
  
  1.8       +4 -2      xml-fop/src/org/apache/fop/render/ps/PSRenderer.java
  
  Index: PSRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/ps/PSRenderer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- PSRenderer.java   2001/08/06 06:21:02     1.7
  +++ PSRenderer.java   2001/08/09 13:51:56     1.8
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PSRenderer.java,v 1.7 2001/08/06 06:21:02 keiron Exp $
  + * $Id: PSRenderer.java,v 1.8 2001/08/09 13:51:56 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -961,7 +961,9 @@
            * Returns a customized the pixel to mm factor.
            */
           public float getPixelToMM() {
  -            return 0.264583333333333333333f;    // 72 dpi
  +            // this is set to 72dpi as the values in fo are 72dpi
  +            return 0.3527777777777777778f; // 72 dpi
  +            // return 0.26458333333333333333333333333333f;    // 96dpi
           }
   
           /**
  
  
  

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

Reply via email to