blackbeam / poppler-simple

A simple javascript interface to poppler library
Apache License 2.0
37 stars 14 forks source link

Add support for isEncrypted #27

Closed mgartner closed 5 years ago

mgartner commented 5 years ago

This PR adds the ability to access the isEncrypted value from Poppler. This value is true if the PDF is password-protected, and false otherwise.

This is especially useful for us at Lob. If a PDF is password protected, we have no way to render it onto a piece of mail in our Print and Mail API, so we must reject it.

I'm very open to feedback, so please let me know what I can do to help get this merged and published.

blackbeam commented 5 years ago

Thanks! I'll publish this soon.

blackbeam commented 5 years ago

Published in v0.6.1

mgartner commented 5 years ago

Thanks!