summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2012-02-29 08:31:44 +0000
committerChris Liddell <chris.liddell@artifex.com>2012-03-15 11:54:23 +0000
commitdba0e5e6cd0238b8653085132206d46613c5c0b9 (patch)
treea323a19b6254d2b06f1c5ecdc89f2fb50fa1361a
parent12f6365c4d22ec01230690d83c342ede4607468b (diff)
pdfwrite - Fix XMP ModDate metaData
The XMP metadata Modification date was being written using the Creation date instead of the Modification date. No differences expected, metadata is not checked by regression tests
-rw-r--r--gs/base/gdevpdfe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gdevpdfe.c b/gs/base/gdevpdfe.c
index 15bdad37b..e76de6d0d 100644
--- a/gs/base/gdevpdfe.c
+++ b/gs/base/gdevpdfe.c
@@ -570,7 +570,7 @@ pdf_write_document_metadata(gx_device_pdf *pdev, const byte digest[6])
cre_date_time_len = pdf_xmp_time(cre_date_time, sizeof(cre_date_time));
else
cre_date_time_len = pdf_xmp_convert_time(cre_date_time, cre_date_time_len, date_time_buf, sizeof(date_time_buf));
- mod_date_time_len = pdf_get_docinfo_item(pdev, "/CreationDate", mod_date_time, sizeof(mod_date_time));
+ mod_date_time_len = pdf_get_docinfo_item(pdev, "/ModDate", mod_date_time, sizeof(mod_date_time));
if (!mod_date_time_len)
mod_date_time_len = pdf_xmp_time(mod_date_time, sizeof(mod_date_time));
else