module Pdfcrypt:40-bit, 128-bit and AES Decryptionsig..end
Pdf.remove_unreferenced on the PDF)
before writing.
Encryption support is part of the Pdfwrite module.
type permission =
| |
NoEdit |
| |
NoPrint |
| |
NoCopy |
| |
NoAnnot |
| |
NoForms |
| |
NoExtract |
| |
NoAssemble |
| |
NoHqPrint |
val decrypt_pdf : string -> Pdf.pdfdoc -> Pdf.pdfdoc option * permission listval decrypt_pdf_owner : string -> Pdf.pdfdoc -> Pdf.pdfdoc optionval recrypt_pdf : Pdf.pdfdoc -> Pdf.pdfdoc -> string -> Pdf.pdfdocrecrypt_pdf original decrypted_and_modified re-encrypts a PDF document
which was decrypted using the user password and owner password from the
original encrypted file and the same permissions and encryption parameters.