From 5f98c7838cd4f64ddae88f167771db31af9c6d97 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 13 Feb 2025 18:56:43 -0500 Subject: [PATCH] Rename pdfioFileGetModDate to pdfioFileGetModificationDate. Add pdfioFileSetModificationDate API. Update DLL exports file. Update docos and changelog. --- CHANGES.md | 1 + doc/pdfio.3 | 19 +++++++++++++++- doc/pdfio.html | 30 ++++++++++++++++++++++--- pdfio-file.c | 18 +++++++++++++-- pdfio.h | 3 ++- pdfio1.def | 59 +++----------------------------------------------- 6 files changed, 67 insertions(+), 63 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a471a58..123d6fc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ Changes in PDFio v1.5.0 - YYYY-MM-DD ------------------- +- Added `pdfioFileGetModDate()` API (Issue #88) - Added support for using libpng to embed PNG images in PDF output (Issue #90) - Updated the pdf2txt example to support font encodings. diff --git a/doc/pdfio.3 b/doc/pdfio.3 index 1c823a1..837f56c 100644 --- a/doc/pdfio.3 +++ b/doc/pdfio.3 @@ -1,4 +1,4 @@ -.TH pdfio 3 "pdf read/write library" "2025-01-24" "pdf read/write library" +.TH pdfio 3 "pdf read/write library" "2025-02-13" "pdf read/write library" .SH NAME pdfio \- pdf read/write library .SH Introduction @@ -3880,6 +3880,14 @@ const char * pdfioFileGetKeywords ( pdfio_file_t *pdf ); .fi +.SS pdfioFileGetModificationDate +Get the most recent modification date for a PDF file. +.PP +.nf +time_t pdfioFileGetModificationDate ( + pdfio_file_t *pdf +); +.fi .SS pdfioFileGetName Get a PDF's filename. .PP @@ -4027,6 +4035,15 @@ void pdfioFileSetKeywords ( const char *value ); .fi +.SS pdfioFileSetModificationDate +Set the modification date for a PDF file. +.PP +.nf +void pdfioFileSetModificationDate ( + pdfio_file_t *pdf, + time_t value +); +.fi .SS pdfioFileSetPermissions Set the PDF permissions, encryption mode, and passwords. .PP diff --git a/doc/pdfio.html b/doc/pdfio.html index d80f62c..c3bc4c4 100644 --- a/doc/pdfio.html +++ b/doc/pdfio.html @@ -1,13 +1,13 @@ -PDFio Programming Manual v1.4.1 +PDFio Programming Manual v1.5.0 - +