Sparticuz / node-qpdf2

A Content Preserving transformations on PDFs wrapped around QPDF
MIT License
20 stars 16 forks source link

Add `--show-encryption` #31

Closed Sparticuz closed 1 year ago

Sparticuz commented 1 year ago

Fixes #30

Sparticuz commented 1 year ago

For now, I just left it as the string that qpdf returns. For an unencrypted file, the result will be 'File is not encrypted'.

(await info(filePath)) === "File is not encrypted" should give you a boolean

azymnis commented 1 year ago

Awesome that works great, thank you