FontVerter
FontVerter copied to clipboard
hasExtractedFont stacktraces when font name is null
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; }