HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.PdfDate Class Reference
Inheritance diagram for iTextSharp.text.pdf.PdfDate:
iTextSharp.text.pdf.PdfString iTextSharp.text.pdf.PdfObject

Public Member Functions

 PdfDate (DateTime d)
 
 PdfDate ()
 
String GetW3CDate ()
 
- Public Member Functions inherited from iTextSharp.text.pdf.PdfString
 PdfString ()
 
 PdfString (string value)
 
 PdfString (string value, string encoding)
 
 PdfString (byte[] bytes)
 
override void ToPdf (PdfWriter writer, Stream os)
 
override string ToString ()
 
String ToUnicodeString ()
 
override byte[] GetBytes ()
 
byte[] GetOriginalBytes ()
 
PdfString SetHexWriting (bool hexWriting)
 
bool IsHexWriting ()
 
- Public Member Functions inherited from iTextSharp.text.pdf.PdfObject
bool CanBeInObjStm ()
 
override string ToString ()
 
bool IsNull ()
 
bool IsBoolean ()
 
bool IsNumber ()
 
bool IsString ()
 
bool IsName ()
 
bool IsArray ()
 
bool IsDictionary ()
 
bool IsStream ()
 
bool IsIndirect ()
 

Static Public Member Functions

static String GetW3CDate (String d)
 
static DateTime Decode (string date)
 

Additional Inherited Members

- Static Public Attributes inherited from iTextSharp.text.pdf.PdfObject
const int BOOLEAN = 1
 
const int NUMBER = 2
 
const int STRING = 3
 
const int NAME = 4
 
const int ARRAY = 5
 
const int DICTIONARY = 6
 
const int STREAM = 7
 
const int NULL = 8
 
const int INDIRECT = 10
 
const string NOTHING = ""
 
const string TEXT_PDFDOCENCODING = "PDF"
 
const string TEXT_UNICODE = "UnicodeBig"
 
- Protected Member Functions inherited from iTextSharp.text.pdf.PdfObject
 PdfObject (int type)
 
 PdfObject (int type, string content)
 
 PdfObject (int type, byte[] bytes)
 
- Protected Attributes inherited from iTextSharp.text.pdf.PdfString
string value = NOTHING
 
string originalValue = null
 
string encoding = TEXT_PDFDOCENCODING
 
int objNum = 0
 
int objGen = 0
 
bool hexWriting = false
 
- Protected Attributes inherited from iTextSharp.text.pdf.PdfObject
byte[] bytes
 
int type
 
PRIndirectReference indRef
 
- Properties inherited from iTextSharp.text.pdf.PdfString
string Encoding [get]
 
- Properties inherited from iTextSharp.text.pdf.PdfObject
int Length [get]
 
string Content [set]
 
int Type [get]
 
PRIndirectReference IndRef [get, set]
 

Detailed Description

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)

See also
PdfString
java.util.GregorianCalendar

Constructor & Destructor Documentation

◆ PdfDate() [1/2]

iTextSharp.text.pdf.PdfDate.PdfDate ( DateTime  d)

Constructs a PdfDate-object.

Parameters
dthe date that has to be turned into a PdfDate-object

◆ PdfDate() [2/2]

iTextSharp.text.pdf.PdfDate.PdfDate ( )

Constructs a PdfDate-object, representing the current day and time.

Member Function Documentation

◆ Decode()

static DateTime iTextSharp.text.pdf.PdfDate.Decode ( string  date)
static

◆ GetW3CDate() [1/2]

String iTextSharp.text.pdf.PdfDate.GetW3CDate ( )

Gives the W3C format of the PdfDate.

Returns
a formatted date

◆ GetW3CDate() [2/2]

static String iTextSharp.text.pdf.PdfDate.GetW3CDate ( String  d)
static

Gives the W3C format of the PdfDate.

Parameters
dthe date in the format D:YYYYMMDDHHmmSSOHH'mm'
Returns
a formatted date

The documentation for this class was generated from the following file: