@Override public String toString() { return getRegistry() + "-" + getOrdering() + "-" + getSupplement(); } }
/** * Returns the CIDSystemInfo, or null if it is missing (which isn't allowed but could happen). */ public PDCIDSystemInfo getCIDSystemInfo() { COSBase base = dict.getDictionaryObject(COSName.CIDSYSTEMINFO); if (base instanceof COSDictionary) { return new PDCIDSystemInfo((COSDictionary) base); } return null; }
return info.getCIDSystemInfo().getRegistry().equals(cidSystemInfo.getRegistry()) && info.getCIDSystemInfo().getOrdering().equals(cidSystemInfo.getOrdering()); long KOREAN_JOHAB = 1 << 21; if (cidSystemInfo.getOrdering().equals("GB1") && (codePageRange & CHINESE_SIMPLIFIED) == CHINESE_SIMPLIFIED) else if (cidSystemInfo.getOrdering().equals("CNS1") && (codePageRange & CHINESE_TRADITIONAL) == CHINESE_TRADITIONAL) else if (cidSystemInfo.getOrdering().equals("Japan1") && (codePageRange & JIS_JAPAN) == JIS_JAPAN) return cidSystemInfo.getOrdering().equals("Korea1") && (codePageRange & KOREAN_WANSUNG) == KOREAN_WANSUNG || (codePageRange & KOREAN_JOHAB) == KOREAN_JOHAB;
@Override public Boolean getisSupplementCompatible() { org.apache.pdfbox.pdmodel.font.PDCIDFont descendantFont = ((org.apache.pdfbox.pdmodel.font.PDType0Font) this.pdFontLike).getDescendantFont(); if (descendantFont != null) { PDCIDSystemInfo cidSystemInfo = descendantFont.getCIDSystemInfo(); CMap currentCMap = ((org.apache.pdfbox.pdmodel.font.PDType0Font) this.pdFontLike).getCMap(); if (cidSystemInfo != null && currentCMap != null) { return Boolean.valueOf(cidSystemInfo.getSupplement() >= currentCMap.getSupplement()); } } return Boolean.FALSE; }
if (ros != null) isDescendantCJK = "Adobe".equals(ros.getRegistry()) && ("GB1".equals(ros.getOrdering()) || "CNS1".equals(ros.getOrdering()) || "Japan1".equals(ros.getOrdering()) || "Korea1".equals(ros.getOrdering()));
if (isDescendantCJK) strName = descendantFont.getCIDSystemInfo().getRegistry() + "-" + descendantFont.getCIDSystemInfo().getOrdering() + "-" + descendantFont.getCIDSystemInfo().getSupplement();
String collection = cidSystemInfo.getRegistry() + "-" + cidSystemInfo.getOrdering();
/** * Returns the CIDSystemInfo, or null if it is missing (which isn't allowed but could happen). */ public PDCIDSystemInfo getCIDSystemInfo() { COSBase base = dict.getDictionaryObject(COSName.CIDSYSTEMINFO); if (base instanceof COSDictionary) { return new PDCIDSystemInfo((COSDictionary) base); } return null; }
@Override public String toString() { return getRegistry() + "-" + getOrdering() + "-" + getSupplement(); } }
return info.getCIDSystemInfo().getRegistry().equals(cidSystemInfo.getRegistry()) && info.getCIDSystemInfo().getOrdering().equals(cidSystemInfo.getOrdering()); long KOREAN_JOHAB = 1 << 21; if (cidSystemInfo.getOrdering().equals("GB1") && (codePageRange & CHINESE_SIMPLIFIED) == CHINESE_SIMPLIFIED) else if (cidSystemInfo.getOrdering().equals("CNS1") && (codePageRange & CHINESE_TRADITIONAL) == CHINESE_TRADITIONAL) else if (cidSystemInfo.getOrdering().equals("Japan1") && (codePageRange & JIS_JAPAN) == JIS_JAPAN) return cidSystemInfo.getOrdering().equals("Korea1") && (codePageRange & KOREAN_WANSUNG) == KOREAN_WANSUNG || (codePageRange & KOREAN_JOHAB) == KOREAN_JOHAB;
/** * Returns the CIDSystemInfo, or null if it is missing (which isn't allowed but could happen). */ public PDCIDSystemInfo getCIDSystemInfo() { COSBase base = dict.getDictionaryObject(COSName.CIDSYSTEMINFO); if (base instanceof COSDictionary) { return new PDCIDSystemInfo((COSDictionary) base); } return null; }
@Override public String toString() { return getRegistry() + "-" + getOrdering() + "-" + getSupplement(); } }
return info.getCIDSystemInfo().getRegistry().equals(cidSystemInfo.getRegistry()) && info.getCIDSystemInfo().getOrdering().equals(cidSystemInfo.getOrdering()); long KOREAN_JOHAB = 1 << 21; if (cidSystemInfo.getOrdering().equals("GB1") && (codePageRange & CHINESE_SIMPLIFIED) == CHINESE_SIMPLIFIED) else if (cidSystemInfo.getOrdering().equals("CNS1") && (codePageRange & CHINESE_TRADITIONAL) == CHINESE_TRADITIONAL) else if (cidSystemInfo.getOrdering().equals("Japan1") && (codePageRange & JIS_JAPAN) == JIS_JAPAN) return cidSystemInfo.getOrdering().equals("Korea1") && (codePageRange & KOREAN_WANSUNG) == KOREAN_WANSUNG || (codePageRange & KOREAN_JOHAB) == KOREAN_JOHAB;
if (isDescendantCJK) strName = descendantFont.getCIDSystemInfo().getRegistry() + "-" + descendantFont.getCIDSystemInfo().getOrdering() + "-" + descendantFont.getCIDSystemInfo().getSupplement();
if (ros != null) isDescendantCJK = "Adobe".equals(ros.getRegistry()) && ("GB1".equals(ros.getOrdering()) || "CNS1".equals(ros.getOrdering()) || "Japan1".equals(ros.getOrdering()) || "Korea1".equals(ros.getOrdering()));
if (isDescendantCJK) strName = descendantFont.getCIDSystemInfo().getRegistry() + "-" + descendantFont.getCIDSystemInfo().getOrdering() + "-" + descendantFont.getCIDSystemInfo().getSupplement();
if (ros != null) isDescendantCJK = "Adobe".equals(ros.getRegistry()) && ("GB1".equals(ros.getOrdering()) || "CNS1".equals(ros.getOrdering()) || "Japan1".equals(ros.getOrdering()) || "Korea1".equals(ros.getOrdering()));
this.isCIDSystemInfoPresent = cidSystemInfo != null; if (this.isCIDSystemInfoPresent) { this.cidSysInfoRegistry = cidSystemInfo.getRegistry(); this.cidSysInfoOrdering = cidSystemInfo.getOrdering(); this.cidSysInfoSupplement = Long.valueOf(cidSystemInfo.getSupplement());
String collection = cidSystemInfo.getRegistry() + "-" + cidSystemInfo.getOrdering();
String collection = cidSystemInfo.getRegistry() + "-" + cidSystemInfo.getOrdering();