From 17ade08ca81921329273c5eb1ef6d3d161cd864d Mon Sep 17 00:00:00 2001 From: eschaeffer Date: Tue, 23 May 2000 09:24:55 +0000 Subject: [PATCH] changes to compile 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 | 8 ++++---- 1 file 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"); } -- 2.39.5