FontVerter icon indicating copy to clipboard operation
FontVerter copied to clipboard

hasExtractedFont stacktraces when font name is null

Open helcat opened this issue 5 years ago • 0 comments

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

helcat avatar Oct 21 '19 17:10 helcat