Opait PDF Library
Static Public Member Functions | List of all members
Opait.Pdf.Api.PdfDate Class Reference

Utility class to handle PDF formatted dates. More...

Static Public Member Functions

static ? DateTime Parse (string pdfDate)
 Parse the supplied human-readable PDF string as a DateTime structure. More...
 
static string Format (DateTime date)
 Format the supplied date in human readable PDF format. More...
 
static string FormatXmp (DateTime date)
 Formats the supplied date in XMP format. More...
 

Detailed Description

Utility class to handle PDF formatted dates.

Member Function Documentation

◆ Format()

static string Opait.Pdf.Api.PdfDate.Format ( DateTime  date)
static

Format the supplied date in human readable PDF format.

This format is used to store dates in the document info dictionary.

Parameters
dateThe date to format.
Returns
The PDF formatted date.

◆ FormatXmp()

static string Opait.Pdf.Api.PdfDate.FormatXmp ( DateTime  date)
static

Formats the supplied date in XMP format.

Parameters
dateThe date to format.
Returns
The XMP formatted date.

◆ Parse()

static ? DateTime Opait.Pdf.Api.PdfDate.Parse ( string  pdfDate)
static

Parse the supplied human-readable PDF string as a DateTime structure.

Parameters
pdfDateThe PDF formatted date.
Returns
An instance of DateTime representing the PDF date.