<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>fontbox</artifactId>
- <version>2.0.0</version>
+ <version>2.0.3</version>
</dependency>
<!-- test deps -->
<dependency>
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();
}