pdfGetCreationDate
Get file creation date.
int pdfGetCreationDate(PDFHandle pdf,
int *year, int *month, int *day,
int *hour, int *minute, int *second)
This function retrieves the value of the CreationDate info field,
parsed as a date (in the encoding format defined by the PDF
specification).
Returns 1 on success, or 0 if the CreationDate field doesn't exist or couldn't be parsed as a date.
This function is equivalent to
pdfGetInfoDate(pdf, "CreationDate",
year, month, day,
hour, minute, second);
C:
int year, month, day, hour, minute, second;
if (pdfGetCreationDate(pdf, &year, &month, &day, &hour, &minute, &second)) {
printf("creation date = %04d-%02d-%02d %02d:%02d:%02d\n",
year, month, day, hour, minute, second);
} else {
printf("no creation date\n");
}