Sample JavaScript code for using Aspose.PDF to read protected (password encrypted) documents, secure a document with protection, or remove protection.... Always make sure you have the right permissions...textContent = json . errorText ; /*make a link to download the result...