Rename pdfioFileGetModDate to pdfioFileGetModificationDate.

Add pdfioFileSetModificationDate API.

Update DLL exports file.

Update docos and changelog.
This commit is contained in:
Michael R Sweet
2025-02-13 18:56:43 -05:00
parent 4f880bc0c1
commit 5f98c7838c
6 changed files with 67 additions and 63 deletions

View File

@@ -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.
//