@Override public String getOutputConditionIdentifier() { if (outInt != null && !outInt.empty()) { return outInt.getOutputConditionIdentifier(); } return null; }
@Override public String getSubType() { if (outInt != null && !outInt.empty()) { return outInt.getSubtype(); } return null; }
private List<ICCOutputProfile> getDestProfile() { ICCProfile iccProfile = ((org.verapdf.pd.PDOutputIntent) simplePDObject).getDestOutputProfile(); if (iccProfile != null) { List<ICCOutputProfile> profile = new ArrayList<>(MAX_NUMBER_OF_ELEMENTS); String subtype = ((org.verapdf.pd.PDOutputIntent) simplePDObject).getSubtype(); profile.add(new GFICCOutputProfile(iccProfile, subtype)); return Collections.unmodifiableList(profile); } return Collections.emptyList(); } }
@Override public String getOutputConditionIdentifier() { org.verapdf.pd.PDOutputIntent outInt = (org.verapdf.pd.PDOutputIntent) simplePDObject; return outInt.getOutputConditionIdentifier(); }
@Override public String getRegistryName() { if (outInt != null && !outInt.empty()) { return outInt.getRegistryName(); } return null; }
@Override public String getOutputCondition() { if (outInt != null && !outInt.empty()) { return outInt.getOutputCondition(); } return null; }
@Override public String getS() { org.verapdf.pd.PDOutputIntent outInt = (org.verapdf.pd.PDOutputIntent) simplePDObject; return outInt.getSubtype(); }
private String addICCProfileFromOutputIntent(PDOutputIntent outInt) { ICCProfile profile = outInt.getDestOutputProfile(); if (profile != null) { String iccProfileID = getId(profile.getObject(), FeatureObjectType.ICCPROFILE); if (checkIDBeforeProcess(iccProfileID)) { reporter.report(GFFeaturesObjectCreator.createICCProfileFeaturesObject(profile, iccProfileID)); } return iccProfileID; } return null; }
public COSObject getCOSDestOutputProfileRef() { return getKey(ASAtom.DEST_OUTPUT_PROFILE_REF); }
public String getOutputConditionIdentifier() { return getStringValue(ASAtom.OUTPUT_CONDITION_IDENTIFIER); }
@Override public boolean isPDFObjectPresent() { return outInt != null && !outInt.empty(); }
public List<PDOutputIntent> getOutputIntents() { COSObject base = getKey(ASAtom.OUTPUT_INTENTS); if (base != null && base.getType() == COSObjType.COS_ARRAY) { if (base.isIndirect()) { base = base.getDirect(); } List<PDOutputIntent> result = new ArrayList<>(base.size()); for (COSObject obj : (COSArray) base.getDirectBase()) { if (obj != null && obj.getType().isDictionaryBased()) { result.add(new PDOutputIntent(obj)); } } return Collections.unmodifiableList(result); } return Collections.emptyList(); }
private String getStringValue(ASAtom key) { COSObject base = getKey(key); if (base != null && base.getType() == COSObjType.COS_STRING) { return base.getString(); } return null; } }
public String getInfo() { return getStringValue(ASAtom.INFO); }
public ICCProfile getDestOutputProfile() { COSObject profile = getKey(ASAtom.DEST_OUTPUT_PROFILE); if (profile != null && profile.getType() == COSObjType.COS_STREAM) { return new ICCProfile(profile); } return null; }
public String getOutputCondition() { return getStringValue(ASAtom.OUTPUT_CONDITION); }
public String getSubtype() { COSObject base = getKey(ASAtom.S); if (base != null && base.getType() == COSObjType.COS_NAME) { return base.getName().getValue(); } return null; }
public String getRegistryName() { return getStringValue(ASAtom.REGISTRY_NAME); }