Encrypt
encrypt protects the PDF with passwords. Set userPassword, ownerPassword, or both.
permissions takes print, printHighQuality, modifyContent, extractText, modifyAnnotations, fillForms and assemble, each true unless you set it to false.
optimize, render and the extracts may follow it. A PDF/A or Factur-X can’t be encrypted, and an encrypted PDF can’t be signed — see the order rules.
Decrypt
decrypt opens encrypted PDFs and removes their encryption. In a list, it comes first.
password instead, such as PDF.info({ files, password }).
Sign
sign signs the PDF with a certificate you upload, so readers can check who signed it and that nothing changed since.
timestamp, render and the extracts may follow sign. A stage that rewrites the file, such as select, merge, remediate or optimize, refuses a signed PDF. Stamps, rotations, metadata, bookmarks, attachments and tags append to the file and keep the signature.
An encrypted PDF signs in two requests: decrypt it, then sign the result.
Timestamp
timestamp adds a document timestamp from an RFC 3161 timestamp authority: proof the PDF existed, unchanged, at that time. It names no signer; to timestamp a signature, give sign a timestampUrl instead.
Redact
redact removes the content under each region from the file itself, not just from view: the text is gone from the page and from any text a reader extracts. Nothing is drawn in its place.
Each region takes a page, and x, y, width and height in points from the bottom-left corner of the page.