private PDDeviceRGB(boolean isInherited) { super(COSName.construct(ASAtom.DEVICERGB)); setInherited(isInherited); }
public PDXObject getXObject(COSName name) { if (name != null) { return getXObject(name.getName()); } return null; }
/** * Constructor for child classes * @param cosName greenfield COSName * @param type child class type */ protected GFCosName(COSName cosName, final String type) { super(cosName, type); this.internalRepresentation = cosName.getString(); }
private static void replaceAbbreviation(final COSName abbreviation) { if (abbreviation.getName() == ASAtom.CMYK) { abbreviation.set(ASAtom.DEVICECMYK); } else if (abbreviation.getName() == ASAtom.RGB) { abbreviation.set(ASAtom.DEVICERGB); } else if (abbreviation.getName() == ASAtom.G) { abbreviation.set(ASAtom.DEVICEGRAY); } }
public static COSBase fromValue(final String value) { return new COSName(value); }
public GFCosIIFilter(final String filter) { this((COSName) COSName.fromValue(filter)); }
public boolean setName(final ASAtom value) { set(value); return true; }
public void visitFromName(COSName obj) { try { this.write(obj.toString()); } catch (IOException e) { e.printStackTrace(); } }
public static COSBase fromValue(final ASAtom value) { return new COSName(value); }
/** * Get all keys of the dictionary */ private List<CosName> getKeys() { List<CosName> list = new ArrayList<>(this.baseObject.size().intValue()); for (ASAtom key : this.baseObject.getKeySet()) { if (key != null) { COSBase name = COSName.fromValue(key); list.add((CosName) getFromValue(name)); } } return Collections.unmodifiableList(list); }
public boolean setString(final String value) { set(value); return true; }
private PDDeviceGray(boolean isInherited) { super(COSName.construct(ASAtom.DEVICEGRAY)); setInherited(isInherited); }
public PDExtGState getExtGState(COSName name) { if (name != null) { return getExtGState(name.getName()); } return null; }
public PSOperator(COSName operator) { super(operator); this.operator = operator.getString(); }
public static COSObject construct(final String value) { return new COSObject(new COSName(value)); }
COSName filterName = (COSName) COSName.fromValue(filter); result.add(createFilter(filterName, decodeParms)); } else if (filters.size() > 1) { for (ASAtom filter : filtersList) { if (decodeParms == null) { result.add(createFilter((COSName) COSName.fromValue(filter), null)); result.add(createFilter((COSName) COSName.fromValue(filter), decodeParms)); } else { LOGGER.log(Level.FINE, "Invalid decodeParms type. Ignoring decodeParms.");
private PDDeviceCMYK(boolean isInherited) { super(COSName.construct(ASAtom.DEVICECMYK)); setInherited(isInherited); }
public PDFont getFont(COSName name) { if (name != null) { return getFont(name.getName()); } return null; }
public static COSObject construct(final ASAtom value) { return new COSObject(new COSName(value)); }