diff options
Diffstat (limited to 'pdf/pdf_crypt.c')
-rw-r--r-- | pdf/pdf_crypt.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pdf/pdf_crypt.c b/pdf/pdf_crypt.c index 4fc34ea8..5329e845 100644 --- a/pdf/pdf_crypt.c +++ b/pdf/pdf_crypt.c @@ -636,13 +636,20 @@ pdf_crypt_key(pdf_document *xref) } int -pdf_crypt_revision(pdf_document *xref) +pdf_crypt_version(pdf_document *xref) { if (xref->crypt) return xref->crypt->v; return 0; } +int pdf_crypt_revision(pdf_document *xref) +{ + if (xref->crypt) + return xref->crypt->r; + return 0; +} + char * pdf_crypt_method(pdf_document *xref) { |