diff --git a/src/main/java/org/verapdf/factory/colors/ColorSpaceFactory.java b/src/main/java/org/verapdf/factory/colors/ColorSpaceFactory.java index 721a2741..8f02ea50 100644 --- a/src/main/java/org/verapdf/factory/colors/ColorSpaceFactory.java +++ b/src/main/java/org/verapdf/factory/colors/ColorSpaceFactory.java @@ -111,7 +111,7 @@ private static PDColorSpace getColorSpaceFromName(COSObject base, PDResources } } } - LOGGER.log(Level.FINE, "Unknown ColorSpace name"); + LOGGER.log(Level.FINE, "Unknown ColorSpace name " + name); return null; } } diff --git a/src/main/java/org/verapdf/pd/font/type1/Type1FontProgram.java b/src/main/java/org/verapdf/pd/font/type1/Type1FontProgram.java index 6c53537b..a986feeb 100644 --- a/src/main/java/org/verapdf/pd/font/type1/Type1FontProgram.java +++ b/src/main/java/org/verapdf/pd/font/type1/Type1FontProgram.java @@ -139,9 +139,11 @@ public void parseFont() throws IOException { getBaseParser().initializeToken(); getBaseParser().skipSpaces(true); - + + COSObject nextObject = nextObject(); while (getBaseParser().getToken().type != Token.Type.TT_EOF) { - processObject(nextObject()); + processObject(nextObject); + nextObject = nextObject(); } initializeEncoding(); if (glyphWidths == null) {