diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-18 13:18:23 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-18 13:18:23 +0200 |
commit | c4b5d93e6ee08a9d36df6a2452da3b7f7c772196 (patch) | |
tree | 6775e093121f2150f3a2b27ebf11fe213c346d42 /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl | |
parent | b3b58d9be6c3f5dd7e26c67d406cefbf8bf87110 (diff) | |
download | pdf-as-4-c4b5d93e6ee08a9d36df6a2452da3b7f7c772196.tar.gz pdf-as-4-c4b5d93e6ee08a9d36df6a2452da3b7f7c772196.tar.bz2 pdf-as-4-c4b5d93e6ee08a9d36df6a2452da3b7f7c772196.zip |
Parse font size as Float (issue: #24)
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl')
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java index b0c4b552..052106fd 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java @@ -110,10 +110,10 @@ public class PDFBoxFont { if(fontArr.length == 3) { font = generateFont(fontArr[0], fontArr[2]); - fontSize = Integer.parseInt(fontArr[1]); + fontSize = Float.parseFloat(fontArr[1]); } else if(fontArr.length == 2 && fontArr[0].startsWith("TTF:")) { font = generateFont(fontArr[0], null); - fontSize = Integer.parseInt(fontArr[1]); + fontSize = Float.parseFloat(fontArr[1]); } else { logger.warn("Using default font because: {} is not a valid font descriptor.", desc); this.font = defaultFont; |