Skip to content

Commit

Permalink
Remove wrong fine logs in FileSpecificationKeysHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed May 6, 2024
1 parent 9ca7ded commit 30fbd5e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static void processPage(PDPage page) {
}

private static void processXObject(PDXObject xObject) {
if (xObject != null && !isKeyVisited(xObject.getObject().getKey())) {
if (xObject != null && (!xObject.getObject().isIndirect() || !isKeyVisited(xObject.getObject().getKey()))) {
registerDictionaryAFKeys(xObject.getObject());
if (ASAtom.FORM.equals(xObject.getType())) {
parseResources(((PDXForm) xObject).getResources());
Expand Down Expand Up @@ -149,21 +149,21 @@ private static void registerDictionaryAFKeys(COSObject dictionary) {
}

private static void processExtGState(PDExtGState extGState) {
if (extGState != null && !isKeyVisited(extGState.getObject().getKey())) {
if (extGState != null && (!extGState.getObject().isIndirect() || !isKeyVisited(extGState.getObject().getKey()))) {
processFont(extGState.getFont());
}
}

private static void processFont(PDFont font) {
if (font != null
&& !isKeyVisited(font.getObject().getKey())
&& (!font.getObject().isIndirect() || !isKeyVisited(font.getObject().getKey()))
&& ASAtom.TYPE3.equals(font.getSubtype())) {
parseResources(((PDType3Font) font).getResources());
}
}

private static void processPattern(PDPattern pattern) {
if (pattern != null && !isKeyVisited(pattern.getObject().getKey())) {
if (pattern != null && (!pattern.getObject().isIndirect() || !isKeyVisited(pattern.getObject().getKey()))) {
if (pattern.getPatternType() == 1) {
parseResources(((PDTilingPattern) pattern).getResources());
} else if (pattern.getPatternType() == 2) {
Expand Down

0 comments on commit 30fbd5e

Please sign in to comment.