@Override public boolean isStandard14() { // this logic is based on Acrobat's behaviour, see PDFBOX-2372 // the Encoding entry cannot have Differences if we want "standard 14" font handling if (getEncoding() instanceof DictionaryEncoding) { DictionaryEncoding dictionary = (DictionaryEncoding)getEncoding(); if (dictionary.getDifferences().size() > 0) { // we also require that the differences are actually different, see PDFBOX-1900 with // the file from PDFBOX-2192 on Windows Encoding baseEncoding = dictionary.getBaseEncoding(); for (Map.Entry<Integer, String> entry : dictionary.getDifferences().entrySet()) { if (!entry.getValue().equals(baseEncoding.getName(entry.getKey()))) { return false; } } } } return super.isStandard14(); }
if (!font.isEmbedded() && !font.isVertical() && !font.isStandard14() && font.hasExplicitWidth(code))
if (!font.isEmbedded() && !font.isVertical() && !font.isStandard14() && font.hasExplicitWidth(code))
if (this.font instanceof PDFont) isStandard14 = ((PDFont) font).isStandard14();
@Override public boolean isStandard14() { // this logic is based on Acrobat's behaviour, see PDFBOX-2372 // the Encoding entry cannot have Differences if we want "standard 14" font handling if (getEncoding() instanceof DictionaryEncoding) { DictionaryEncoding dictionary = (DictionaryEncoding)getEncoding(); if (dictionary.getDifferences().size() > 0) { // we also require that the differences are actually different, see PDFBOX-1900 with // the file from PDFBOX-2192 on Windows Encoding baseEncoding = dictionary.getBaseEncoding(); for (Map.Entry<Integer, String> entry : dictionary.getDifferences().entrySet()) { if (!entry.getValue().equals(baseEncoding.getName(entry.getKey()))) { return false; } } } } return super.isStandard14(); }
@Override public boolean isStandard14() { // this logic is based on Acrobat's behaviour, see PDFBOX-2372 // the Encoding entry cannot have Differences if we want "standard 14" font handling if (getEncoding() instanceof DictionaryEncoding) { DictionaryEncoding dictionary = (DictionaryEncoding)getEncoding(); if (dictionary.getDifferences().size() > 0) { // we also require that the differences are actually different, see PDFBOX-1900 with // the file from PDFBOX-2192 on Windows Encoding baseEncoding = dictionary.getBaseEncoding(); for (Map.Entry<Integer, String> entry : dictionary.getDifferences().entrySet()) { if (!entry.getValue().equals(baseEncoding.getName(entry.getKey()))) { return false; } } } } return super.isStandard14(); }
if (gid == 0 && !isCIDFont && code == 10 && font.isStandard14()) if (gid == 0 && !font.isEmbedded() && !font.isStandard14())
if (!font.isEmbedded() && !font.isVertical() && !font.isStandard14() && font.hasExplicitWidth(code))
if (this.font instanceof PDFont) isStandard14 = ((PDFont) font).isStandard14();
if (this.font instanceof PDFont) isStandard14 = ((PDFont) font).isStandard14();