]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
changes to compile
authoreschaeffer <eschaeffer@unknown>
Tue, 23 May 2000 09:24:55 +0000 (09:24 +0000)
committereschaeffer <eschaeffer@unknown>
Tue, 23 May 2000 09:24:55 +0000 (09:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193376 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/pdf/PDFRenderer.java

index d4fca07c307a58c65de68ec7b8f1314c92d74446..02d5fa522929fd59fa2921d1d0893384ea8cfef6 100644 (file)
@@ -338,10 +338,10 @@ public class PDFRenderer implements Renderer {
 
        int xObjectNum = this.pdfDoc.addImage(img);
 
-       currentStream.add("ET\nq\n" + (img.getWidth()/1000f) + " 0 0 " +
-                         (img.getHeight()/1000f) + " " + 
-                         ((x + img.getX())/1000f) + " " + 
-                         (((y - h) - img.getY())/1000f) + " cm\n" +
+       currentStream.add("ET\nq\n" + (((float) w) / 1000f) + " 0 0 " +
+                         (((float) h) / 1000f) + " " + 
+                         (((float) x) / 1000f) + " " + 
+                         (((float) (y - h)) / 1000f) + " cm\n" +
                          "/Im" + xObjectNum + " Do\nQ\nBT\n"); 
        }