Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.PdfDate


      options.log("console.processing");
      final PdfSignature dic = new PdfSignature(PdfName.ADOBE_PPKLITE, new PdfName("adbe.pkcs7.detached"));
      dic.setReason(sap.getReason());
      dic.setLocation(sap.getLocation());
      dic.setContact(sap.getContact());
      dic.setDate(new PdfDate(sap.getSignDate()));
      sap.setCryptoDictionary(dic);

      final Proxy tmpProxy = options.createProxy();

      final CRLInfo crlInfo = new CRLInfo(options, chain);
View Full Code Here


  /**
   * Sets the value of the collection item.
   * @param c
   */
  public void addItem(String key, Calendar c) {
    addItem(key, new PdfDate(c));
  }
View Full Code Here

  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());
  }
View Full Code Here

  /**
   * Sets the value of the collection item.
   * @param c
   */
  public void addItem(String key, Calendar c) {
    addItem(key, new PdfDate(c));
  }
View Full Code Here

  public PdfObject getValue(String v) {
    switch(type) {
    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());
  }
View Full Code Here

  /**
   * Sets the value of the collection item.
   * @param c
   */
  public void addItem(String key, Calendar c) {
    addItem(key, new PdfDate(c));
  }
View Full Code Here

  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()));
  }
View Full Code Here

TOP

Related Classes of com.lowagie.text.pdf.PdfDate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.