@Override public COSBase getCOSObject() { return COSName.getPDFName("ZapfDingbatsEncoding"); }
/** * This is a convenience method that will convert the value to a COSString object. If it is null then the object * will be removed. * * @param embedded The embedded dictionary to set the item in. * @param key The key to the object, * @param value The string value for the name. */ public void setEmbeddedString(String embedded, String key, String value) { setEmbeddedString(embedded, COSName.getPDFName(key), value); }
/** * This is a convenience method that will convert the value to a COSInteger object. * * @param key The key to the object, * @param value The int value for the name. */ public void setLong(String key, long value) { setLong(COSName.getPDFName(key), value); }
/** * This is a convenience method that will get the dictionary object that is expected to be a * string. Null is returned if the entry does not exist in the dictionary. * * @param key The key to the item in the dictionary. * @return The name converted to a string. */ public String getString(String key) { return getString(COSName.getPDFName(key)); }
/** * This is a convenience method that will get the dictionary object that is expected to be a name and convert it to * a string. Null is returned if the entry does not exist in the dictionary or if the date was invalid. * * @param key The key to the item in the dictionary. * @return The name converted to a date. */ public Calendar getDate(String key) { return getDate(COSName.getPDFName(key)); }
/** * {@inheritDoc} */ @Override public V remove(Object key) { map.removeItem( COSName.getPDFName( (String)key ) ); return actuals.remove( key ); }
/** * Sets the filter entry of the encryption dictionary. * * @param filter The filter name. */ public void setFilter(String filter) { dictionary.setItem(COSName.FILTER, COSName.getPDFName(filter)); }
/** * This is a convenience method that will convert the value to a COSName object. If it is null then the object will * be removed. * * @param key The key to the object, * @param value The string value for the name. */ public void setName(String key, String value) { setName(COSName.getPDFName(key), value); }
/** * This is a convenience method that will convert the value to a COSString object. If it is null then the object * will be removed. * * @param key The key to the object, * @param value The string value for the name. */ public void setString(String key, String value) { setString(COSName.getPDFName(key), value); }
/** * This is a convenience method that will convert the value to a COSInteger object. * * @param embeddedDictionary The embedded dictionary. * @param key The key to the object, * @param value The int value for the name. */ public void setEmbeddedInt(String embeddedDictionary, String key, int value) { setEmbeddedInt(embeddedDictionary, COSName.getPDFName(key), value); }
/** * This is a convenience method that will get the dictionary object that is expected to be a date. * * @param key The key to the item in the dictionary. * @param defaultValue The default value to return if the entry does not exist in the dictionary or if the date was invalid. * @return The name converted to a date. */ public Calendar getDate(String key, Calendar defaultValue) { return getDate(COSName.getPDFName(key), defaultValue); }
/** * This is a convenience method that will get the dictionary object that is expected to be a date. * * @param embedded The embedded dictionary to get. * @param key The key to the item in the dictionary. * @param defaultValue The default value to return if the entry does not exist in the dictionary or if the date was invalid. * @return The name converted to a string. */ public Calendar getEmbeddedDate(String embedded, String key, Calendar defaultValue) { return getEmbeddedDate(embedded, COSName.getPDFName(key), defaultValue); }
/** * This is a convenience method that will get the dictionary object that is expected to be a float. If the * dictionary value is null then the default value will be returned. * * @param key The key to the item in the dictionary. * @param defaultValue The value to return if the dictionary item is null. * @return The float value. */ public float getFloat(String key, float defaultValue) { return getFloat(COSName.getPDFName(key), defaultValue); }
/** * @see java.util.Map#containsKey(Object) * * @param name The key to find in the map. * @return true if the map contains this key. */ public boolean containsKey(String name) { return containsKey(COSName.getPDFName(name)); }
/** * This is a convenience method that will get the dictionary object that is expected to be a name and convert it to * a string. Null is returned if the entry does not exist in the dictionary. * * @param embedded The embedded dictionary. * @param key The key to the item in the dictionary. * @return The name converted to a string. */ public String getEmbeddedString(String embedded, String key) { return getEmbeddedString(embedded, COSName.getPDFName(key), null); }
/** * Get an integer from an embedded dictionary. Useful for 1-1 mappings. default:-1 * * @param embeddedDictionary The name of the embedded dictionary. * @param key The key in the embedded dictionary. * * @return The value of the embedded integer. */ public int getEmbeddedInt(String embeddedDictionary, String key) { return getEmbeddedInt(embeddedDictionary, COSName.getPDFName(key)); }
/** * {@inheritDoc} */ @Override public V put(K key, V value) { COSObjectable object = (COSObjectable)value; map.setItem( COSName.getPDFName( (String)key ), object.getCOSObject() ); return actuals.put( key, value ); }
/** * This will set initial state of the annotation, open or closed. * * @param open Boolean value, true = open false = closed */ public void setOpen(boolean open) { getCOSObject().setBoolean(COSName.getPDFName("Open"), open); }
/** * This will set an item in the dictionary. * * @param key The key to the dictionary object. * @param value The value to the dictionary object. */ public void setBoolean(String key, boolean value) { setItem(COSName.getPDFName(key), COSBoolean.getBoolean(value)); }
/** * Creates a new Separation color space. */ public PDSeparation() { array = new COSArray(); array.add(COSName.SEPARATION); array.add(COSName.getPDFName("")); // add some placeholder array.add(COSNull.NULL); array.add(COSNull.NULL); }