summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-08-06 11:33:48 +0200
committerSebastian Rasmussen <sebras@gmail.com>2012-08-06 14:06:35 +0200
commit457a5ca61fc04107ce207ab2f40aa73725eb9947 (patch)
tree1a9019ce4ce13d22895ece438439b6f802183f8f
parentd8fa625712055f7210e0d2c6d0221f43b6071531 (diff)
downloadmupdf-457a5ca61fc04107ce207ab2f40aa73725eb9947.tar.xz
Update PDF metadata to include both PDF encryption version and revision
-rw-r--r--pdf/pdf_xref.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index c701d5f0..de91db51 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -1189,7 +1189,8 @@ pdf_meta(pdf_document *doc, int key, void *ptr, int size)
return FZ_META_OK;
case FZ_META_CRYPT_INFO:
if (doc->crypt)
- sprintf((char *)ptr, "Standard V%d %d-bit %s",
+ sprintf((char *)ptr, "Standard V%d R%d %d-bit %s",
+ pdf_crypt_version(doc),
pdf_crypt_revision(doc),
pdf_crypt_length(doc),
pdf_crypt_method(doc));