Skip to content

Commit

Permalink
PDFBOX-5873: split long method
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1920308 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Aug 30, 2024
1 parent 9c6c8cc commit 560f0dd
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ private void processResources(PDResources resources, String prefix, boolean addK
return;
}

processResourcesFonts(resources, addKey, prefix);
processNestedResources(resources, prefix, addKey);
}

private void processResourcesFonts(PDResources resources, boolean addKey, String prefix) throws IOException
{
for (COSName key : resources.getFontNames())
{
PDFont font = resources.getFont(key);
Expand Down Expand Up @@ -237,7 +243,11 @@ else if (font instanceof PDType0Font)
}
}
}
}

private void processNestedResources(PDResources resources, String prefix, boolean addKey)
throws IOException
{
for (COSName name : resources.getXObjectNames())
{
PDXObject xobject = resources.getXObject(name);
Expand Down

0 comments on commit 560f0dd

Please sign in to comment.