aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2016-10-14 09:02:56 +0000
committerSimon Steiner <ssteiner@apache.org>2016-10-14 09:02:56 +0000
commitcff195d6957cd413572440fccf952fbb5a6dc615 (patch)
tree1f903c08adb659bf7063de849ee42d8be934f857 /fop-core
parent6c65be5cbca3bf27343bc89ef5737f32e2535a90 (diff)
downloadxmlgraphics-fop-cff195d6957cd413572440fccf952fbb5a6dc615.tar.gz
xmlgraphics-fop-cff195d6957cd413572440fccf952fbb5a6dc615.zip
FOP-2656: Update to PDFBox 2.0.3
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1764839 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/pom.xml2
-rw-r--r--fop-core/src/main/java/org/apache/fop/render/ps/Type1CharStringFormatter.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/fop-core/pom.xml b/fop-core/pom.xml
index 00ba4f08a..baf28e89a 100644
--- a/fop-core/pom.xml
+++ b/fop-core/pom.xml
@@ -100,7 +100,7 @@
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>fontbox</artifactId>
- <version>2.0.0</version>
+ <version>2.0.3</version>
</dependency>
<!-- test deps -->
<dependency>
diff --git a/fop-core/src/main/java/org/apache/fop/render/ps/Type1CharStringFormatter.java b/fop-core/src/main/java/org/apache/fop/render/ps/Type1CharStringFormatter.java
index 0a6613a36..8d068c988 100644
--- a/fop-core/src/main/java/org/apache/fop/render/ps/Type1CharStringFormatter.java
+++ b/fop-core/src/main/java/org/apache/fop/render/ps/Type1CharStringFormatter.java
@@ -41,8 +41,8 @@ public class Type1CharStringFormatter {
for (Object object : sequence) {
if (object instanceof CharStringCommand) {
writeCommand((CharStringCommand) object);
- } else if (object instanceof Integer) {
- writeNumber((Integer) object);
+ } else if (object instanceof Number) {
+ writeNumber(((Number) object).intValue());
} else {
throw new IllegalArgumentException();
}