PDFDateString
class PDFDateString {}
static toDateObject(input: string): Date | null;
§Static Methods
§
toDateObject(input: string): Date | null
[src]Convert a PDF date string to a JavaScript Date
object.
The PDF date string format is described in section 7.9.4 of the official PDF 32000-1:2008 specification. However, in the PDF 1.7 reference (sixth edition) Adobe describes the same format including a trailing apostrophe. This syntax in incorrect, but Adobe Acrobat creates PDF files that contain them. We ignore all apostrophes as they are not necessary for date parsing.
Moreover, Adobe Acrobat doesn't handle changing the date to universal time and doesn't use the user's time zone (effectively ignoring the HH' and mm' parts of the date string).
@param input
@return