jeremias    2003/02/16 04:42:11

  Modified:    src/org/apache/fop/render/pdf Tag: fop-0_20_2-maintain
                        PDFRenderer.java
  Log:
  Fixed some sources of "wrong operand type" error in Acrobat Reader.
  They were caused by rounding bugs, mostly experienced with SVG files coming from 
OpenOffice.
  The PDF contained matrices like "0 0 0 0 0 0 cm" when the values really shouldn't be 
zero.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.91.2.12 +7 -7      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.91.2.11
  retrieving revision 1.91.2.12
  diff -u -r1.91.2.11 -r1.91.2.12
  --- PDFRenderer.java  7 Feb 2003 00:10:46 -0000       1.91.2.11
  +++ PDFRenderer.java  16 Feb 2003 12:42:10 -0000      1.91.2.12
  @@ -550,12 +550,12 @@
           if (!at.isIdentity()) {
               double[] vals = new double[6];
               at.getMatrix(vals);
  -            currentStream.add(PDFNumber.doubleOut(vals[0]) + " "
  -                    + PDFNumber.doubleOut(vals[1]) + " "
  -                    + PDFNumber.doubleOut(vals[2]) + " "
  -                    + PDFNumber.doubleOut(vals[3]) + " "
  -                    + PDFNumber.doubleOut(vals[4]) + " "
  -                    + PDFNumber.doubleOut(vals[5]) + " cm\n");
  +            currentStream.add(PDFNumber.doubleOut(vals[0], 8) + " "
  +                    + PDFNumber.doubleOut(vals[1], 8) + " "
  +                    + PDFNumber.doubleOut(vals[2], 8) + " "
  +                    + PDFNumber.doubleOut(vals[3], 8) + " "
  +                    + PDFNumber.doubleOut(vals[4], 8) + " "
  +                    + PDFNumber.doubleOut(vals[5], 8) + " cm\n");
           }
   
           PDFGraphics2D graphics = new PDFGraphics2D(true, fs, pdfDoc,
  
  
  

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

Reply via email to