Sometimes you only want the contents of a document to be seen by those who are authorized to see it. This can be done by assigning a password to a document that must be entered correctly to open the document. You can password protect a PDF or Word document at the time of its creation by giving the password you want to use to GrabzIt.
Password Protect a PDF Document
The examples below show how to add password protection to a PDF document for every programming language we currently support.
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.4.8/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com",
{"format": "pdf", "download": 1, "password": "pass"}).Create();
</script>
Password Protect a Word Document
The examples below show how to add password protection to a DOCX file for every programming language we currently support.
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.4.8/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com",
{"format": "docx", "download": 1, "password": "pass"}).Create();
</script>