Skip to content

Commit

Permalink
GH-80 fix content parser package changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Corless committed Dec 30, 2020
1 parent 3439cb4 commit 6227ca5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
import org.icepdf.core.pobjects.graphics.Shapes;
import org.icepdf.core.pobjects.graphics.TextState;
import org.icepdf.core.util.Library;
import org.icepdf.core.util.content.ContentParser;
import org.icepdf.core.util.content.ContentParserFactory;
import org.icepdf.core.util.parser.content.ContentParser;

import java.awt.*;
import java.awt.geom.AffineTransform;
Expand Down Expand Up @@ -363,8 +362,7 @@ private Shapes getGlyph(int characterIndex, Color fillColor) {
if (resources == null) {
resources = parentResource;
}
ContentParser cp = ContentParserFactory.getInstance()
.getContentParser(library, resources);
ContentParser cp = new ContentParser(library, resources);
// Read the type 3 content stream
try {
GraphicsState gs = new GraphicsState(new Shapes());
Expand Down

0 comments on commit 6227ca5

Please sign in to comment.