Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfDate [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.PdfObject
      com.lowagie.text.pdf.PdfString
         com.lowagie.text.pdf.PdfDate
PdfDate is the PDF date object.

PDF defines a standard date format. The PDF date format closely follows the format defined by the international standard ASN.1 (Abstract Syntax Notation One, defined in CCITT X.208 or ISO/IEC 8824). A date is a PdfString of the form:

(D:YYYYMMDDHHmmSSOHH'mm')

This object is described in the 'Portable Document Format Reference Manual version 1.3' section 7.2 (page 183-184)

Fields inherited from com.lowagie.text.pdf.PdfString:
value,  originalValue,  encoding,  objNum,  objGen,  hexWriting
Fields inherited from com.lowagie.text.pdf.PdfObject:
BOOLEAN,  NUMBER,  STRING,  NAME,  ARRAY,  DICTIONARY,  STREAM,  NULL,  INDIRECT,  NOTHING,  TEXT_PDFDOCENCODING,  TEXT_UNICODE,  bytes,  type,  indRef
Constructor:
 public PdfDate() 
 public PdfDate(Calendar d) 
    Constructs a PdfDate-object.
    Parameters:
    d - the date that has to be turned into a PdfDate-object
Method from com.lowagie.text.pdf.PdfDate Summary:
decode,   getW3CDate,   getW3CDate
Methods from com.lowagie.text.pdf.PdfString:
decrypt,   getBytes,   getEncoding,   getOriginalBytes,   isHexWriting,   setHexWriting,   setObjNum,   toPdf,   toString,   toUnicodeString
Methods from com.lowagie.text.pdf.PdfObject:
canBeInObjStm,   getBytes,   getIndRef,   isArray,   isBoolean,   isDictionary,   isIndirect,   isName,   isNull,   isNumber,   isStream,   isString,   length,   setContent,   setIndRef,   toPdf,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfDate Detail:
 public static Calendar decode(String s) 
    Converts a PDF string representing a date into a Calendar.
 public String getW3CDate() 
    Gives the W3C format of the PdfDate.
 public static String getW3CDate(String d) 
    Gives the W3C format of the PdfDate.