diff options
author | Keiron Liddle <keiron@apache.org> | 2002-08-23 14:03:54 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-08-23 14:03:54 +0000 |
commit | 581ab9256f0f1c9841d5f85baa9ba340c4e3da51 (patch) | |
tree | eaf98446f58c6e10e1779f1dc38bfc54ebd882af /src/org/apache/fop/svg | |
parent | c81cdfd5b27ecd0cb1485349a36e2e6d14ed7f90 (diff) | |
download | xmlgraphics-fop-581ab9256f0f1c9841d5f85baa9ba340c4e3da51.tar.gz xmlgraphics-fop-581ab9256f0f1c9841d5f85baa9ba340c4e3da51.zip |
updated to current batik method and variable names for pixel to mm
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195115 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg')
-rw-r--r-- | src/org/apache/fop/svg/PDFTranscoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/apache/fop/svg/PDFTranscoder.java b/src/org/apache/fop/svg/PDFTranscoder.java index ecd19c1a5..9333483fc 100644 --- a/src/org/apache/fop/svg/PDFTranscoder.java +++ b/src/org/apache/fop/svg/PDFTranscoder.java @@ -361,9 +361,9 @@ public class PDFTranscoder extends XMLAbstractTranscoder { * Returns the pixel to millimeter conversion factor specified in the * <tt>TranscodingHints</tt> or 0.3528 if any. */ - public float getPixelToMM() { - if (getTranscodingHints().containsKey(ImageTranscoder.KEY_PIXEL_TO_MM)) { - return ((Float)getTranscodingHints().get(ImageTranscoder.KEY_PIXEL_TO_MM)).floatValue(); + public float getPixelUnitToMillimeter() { + if (getTranscodingHints().containsKey(ImageTranscoder.KEY_PIXEL_UNIT_TO_MILLIMETER)) { + return ((Float)getTranscodingHints().get(ImageTranscoder.KEY_PIXEL_UNIT_TO_MILLIMETER)).floatValue(); } else { // return 0.3528f; // 72 dpi return 0.26458333333333333333333333333333f; // 96dpi |