/** * Sets the value of the collection item. * @param c */ public void addItem(String key, Calendar c) { addItem(key, new PdfDate(c)); }
/** * Sets the value of the collection item. * @param c */ public void addItem(String key, Calendar c) { addItem(key, new PdfDate(c)); }
/** * Sets the value of the collection item. * @param c */ public void addItem(String key, Calendar c) { addItem(key, new PdfDate(c)); }
/** * Adds the date of creation to the document. */ void addCreationDate() { PdfString date = new PdfDate(); put(PdfName.CREATIONDATE, date); put(PdfName.MODDATE, date); }
/** * Adds the date of creation to the document. */ void addCreationDate(Calendar globalDate) { PdfString date = new PdfDate(globalDate); put(PdfName.CREATIONDATE, date); put(PdfName.MODDATE, date); }
/** * Adds the date of creation to the document. */ void addCreationDate() { PdfString date = new PdfDate(); put(PdfName.CREATIONDATE, date); put(PdfName.MODDATE, date); }
/** * Returns a PdfObject that can be used as the value of a Collection Item. * @param v value the value that has to be changed into a PdfObject (PdfString, PdfDate or PdfNumber) */ public PdfObject getValue(String v) { switch(fieldType) { case TEXT: return new PdfString(v, PdfObject.TEXT_UNICODE); case DATE: return new PdfDate(PdfDate.decode(v)); case NUMBER: return new PdfNumber(v); } throw new IllegalArgumentException(v + " is not an acceptable value for the field " + get(PdfName.N).toString()); } }
/** * Returns a PdfObject that can be used as the value of a Collection Item. * @param v value the value that has to be changed into a PdfObject (PdfString, PdfDate or PdfNumber) */ public PdfObject getValue(String v) { switch(fieldType) { case TEXT: return new PdfString(v, PdfObject.TEXT_UNICODE); case DATE: return new PdfDate(PdfDate.decode(v)); case NUMBER: return new PdfNumber(v); } throw new IllegalArgumentException(MessageLocalization.getComposedMessage("1.is.not.an.acceptable.value.for.the.field.2", v, get(PdfName.N).toString())); } }
/** * Returns a PdfObject that can be used as the value of a Collection Item. * @param v value the value that has to be changed into a PdfObject (PdfString, PdfDate or PdfNumber) */ public PdfObject getValue(String v) { switch(fieldType) { case TEXT: return new PdfString(v, PdfObject.TEXT_UNICODE); case DATE: return new PdfDate(PdfDate.decode(v)); case NUMBER: return new PdfNumber(v); } throw new IllegalArgumentException(MessageLocalization.getComposedMessage("1.is.not.an.acceptable.value.for.the.field.2", v, get(PdfName.N).toString())); } }
if (getContact() != null) sigStandard.setContact(getContact()); sigStandard.put(PdfName.M, new PdfDate(getSignDate())); sigStandard.setSignInfo(getPrivKey(), getCertChain(), getCrlList()); PdfString contents = (PdfString)sigStandard.get(PdfName.CONTENTS);
this.sigStandard.setContact(getContact()); this.sigStandard.put(PdfName.M, new PdfDate(getSignDate())); this.sigStandard.setSignInfo(getPrivKey(), getCertChain(), getCrlList()); final PdfString contents = (PdfString)this.sigStandard.get(PdfName.CONTENTS);
if (getContact() != null) sigStandard.setContact(getContact()); sigStandard.put(PdfName.M, new PdfDate(getSignDate())); sigStandard.setSignInfo(getPrivKey(), certChain, crlList);
PdfDate date = new PdfDate(); if (altMetadata != null) { PdfStream xmp;
PdfDate date = new PdfDate(globalDate); if (altMetadata != null) { PdfStream xmp;