diff options
author | eschaeffer <eschaeffer@unknown> | 2000-05-23 09:24:55 +0000 |
---|---|---|
committer | eschaeffer <eschaeffer@unknown> | 2000-05-23 09:24:55 +0000 |
commit | 17ade08ca81921329273c5eb1ef6d3d161cd864d (patch) | |
tree | cf85a02cb42ebbd24ef436de9f53f9d96dd276a9 /src/org/apache/fop/render | |
parent | f7642ab1c5e2bd170b35ff220dc075e8620539ac (diff) | |
download | xmlgraphics-fop-17ade08ca81921329273c5eb1ef6d3d161cd864d.tar.gz xmlgraphics-fop-17ade08ca81921329273c5eb1ef6d3d161cd864d.zip |
changes to compile
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193376 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render')
-rw-r--r-- | src/org/apache/fop/render/pdf/PDFRenderer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java index d4fca07c3..02d5fa522 100644 --- a/src/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/org/apache/fop/render/pdf/PDFRenderer.java @@ -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"); } |