mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Rename pdfioFileGetModDate to pdfioFileGetModificationDate.
Add pdfioFileSetModificationDate API. Update DLL exports file. Update docos and changelog.
This commit is contained in:
18
pdfio-file.c
18
pdfio-file.c
@@ -802,11 +802,11 @@ pdfioFileGetKeywords(pdfio_file_t *pdf) // I - PDF file
|
||||
|
||||
|
||||
//
|
||||
// 'pdfioFileGetModDate()' - Get the most recent modification date for a PDF file.
|
||||
// 'pdfioFileGetModificationDate()' - Get the most recent modification date for a PDF file.
|
||||
//
|
||||
|
||||
time_t // O - Modification date or `0` for none
|
||||
pdfioFileGetModDate(
|
||||
pdfioFileGetModificationDate(
|
||||
pdfio_file_t *pdf) // I - PDF file
|
||||
{
|
||||
return (pdf && pdf->info_obj ? pdfioDictGetDate(pdfioObjGetDict(pdf->info_obj), "ModDate") : 0);
|
||||
@@ -1138,6 +1138,20 @@ pdfioFileSetKeywords(
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// 'pdfioFileSetModificationDate()' - Set the modification date for a PDF file.
|
||||
//
|
||||
|
||||
void
|
||||
pdfioFileSetModificationDate(
|
||||
pdfio_file_t *pdf, // I - PDF file
|
||||
time_t value) // I - Value
|
||||
{
|
||||
if (pdf && pdf->info_obj)
|
||||
pdfioDictSetDate(pdf->info_obj->value.value.dict, "ModDate", value);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// 'pdfioFileSetPermissions()' - Set the PDF permissions, encryption mode, and passwords.
|
||||
//
|
||||
|
Reference in New Issue
Block a user