示例#1
0
 /**
  * Set the date object.
  *
  * @param embedded The embedded dictionary.
  * @param key The key to the date.
  * @param date The date to set.
  */
 public void setEmbeddedDate(String embedded, COSName key, Calendar date) {
   COSDictionary dic = (COSDictionary) getDictionaryObject(embedded);
   if (dic == null && date != null) {
     dic = new COSDictionary();
     setItem(embedded, dic);
   }
   if (dic != null) {
     dic.setDate(key, date);
   }
 }
示例#2
0
 /**
  * Set the value of a date entry in the dictionary.
  *
  * @param key The key to the date value.
  * @param date The date value.
  */
 public void setDate(String key, Calendar date) {
   setDate(COSName.getPDFName(key), date);
 }