deweese     2003/03/11 08:42:58

  Modified:    sources/org/apache/batik/transcoder/print
                        PrintTranscoder.java
  Log:
  Uncommented Printer Scaling fix, now that I have verified it.
  
  Revision  Changes    Path
  1.25      +5 -10     
xml-batik/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
  
  Index: PrintTranscoder.java
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/sources/org/apache/batik/transcoder/print/PrintTranscoder.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- PrintTranscoder.java      4 Mar 2003 21:24:25 -0000       1.24
  +++ PrintTranscoder.java      11 Mar 2003 16:42:57 -0000      1.25
  @@ -290,16 +290,11 @@
           // Check hint to know if scaling is really needed
           Boolean scaleToPage = (Boolean)hints.get(KEY_SCALE_TO_PAGE);
           if(scaleToPage != null && !scaleToPage.booleanValue()) {
  -            /** I think should fix the off by 1.3333x bug
  -                but since I can't print right now I'm leaving 
  -                commented out.
  -            float pixSzMM = userAgent.getPixelUnitToMillimeter();
  -            float pixSzInch = (25.4/pixSzMM);
  -            // Printing Graphics is always set up for 72dpi, so
  -            // scale to user request.
  +            // Printing Graphics is always set up for 72dpi, so scale
  +            // according to what user agent thinks it should be.
  +            double pixSzMM = userAgent.getPixelUnitToMillimeter();
  +            double pixSzInch = (25.4/pixSzMM);
               scale = 72/pixSzInch;
  -            ***/
  -            scale = 1;
           }
   
           double xMargin = (pageFormat.getImageableWidth() - 
  
  
  

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

Reply via email to