From b6e12a0982bb3e3166c2ebd6a7a9da8fb2e84948 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 9 Jun 2005 12:44:24 +0000 Subject: [PATCH] Publish the default resolution to the outside. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198727 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/apps/FOUserAgent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java index 2e5592ee4..9e3734deb 100644 --- a/src/java/org/apache/fop/apps/FOUserAgent.java +++ b/src/java/org/apache/fop/apps/FOUserAgent.java @@ -64,6 +64,9 @@ import org.apache.fop.render.Renderer; */ public class FOUserAgent { + /** Defines the default resolution (72dpi) for FOP */ + public static final float DEFAULT_PX2MM = (25.4f / 72); //dpi (=25.4/dpi) + /** Map containing various default values */ public Map defaults = new java.util.HashMap(); /** Map containing XML handlers for various document types */ @@ -71,7 +74,7 @@ public class FOUserAgent { private String baseURL; private PDFEncryptionParams pdfEncryptionParams; - private float px2mm = (25.4f / 72); //dpi (=25.4/dpi) + private float px2mm = DEFAULT_PX2MM; private HashMap rendererOptions = new java.util.HashMap(); private InputHandler inputHandler = null; private File outputFile = null; -- 2.39.5