Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hasExtractedFont stacktraces when font name is null #20

Open
helcat opened this issue Oct 21, 2019 · 0 comments
Open

hasExtractedFont stacktraces when font name is null #20

helcat opened this issue Oct 21, 2019 · 0 comments

Comments

@helcat
Copy link

helcat commented Oct 21, 2019

hasExtractedFont stacktraces when font name is null.
Fixed with below. Overriding PdfFontExtractor class to fix the error at the moment.
protected boolean hasExtractedFont(PDFont font) {
for (PDFont fontOn : extractedFonts) {
if (fontOn == null || fontOn.getName() == null)
return false;
if (font == null || font.getName() == null)
return false;

if (fontOn.getName().equals(font.getName()) && fontOn.getClass() == font.getClass())
return true;
}
return false;
}

JavaFX CSS Reference Guide.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant