From 86f6e576ee79c22568820bd700e656fc7eeaacce Mon Sep 17 00:00:00 2001 From: Maxim Date: Mon, 6 May 2024 15:55:57 +0300 Subject: [PATCH] Fix fine logs for colors and fonts --- .../java/org/verapdf/factory/colors/ColorSpaceFactory.java | 2 +- .../java/org/verapdf/pd/font/type1/Type1FontProgram.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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) {