Search

How to remove password from PDF

Updated: Apr 18


Have you ever been in a situation when you want to remove document open passwords for Credit card statement, government-issued document, insurance documents, billing notices, bank statements or from any other protected file? If yes, then all your queries will get resolved here because in this blog we have illustrated the simplest way to remove any password or any other security permanently from PDF document.


Remove password or any other security using PDFFiddler Playground in easy steps




  • Write/Copy Paste this simple script in script section and replace the <Old Password will come here> with original password

//load document with password 
doc = load($input[0], "<Old Password will come here>")
//Set password to blank
doc.setPassword("")
//output
output(doc)

  • Click on Run Button, on Top Right of the Page





  • Voila! Download output PDF, without having any password.


The above example is a pretty simple one, but, we can do many other complex tasks, using PDFFiddler Playground. For example,


  • if we want to remove the old password and set the new password, then just change the script little bit as below

//Set password to new one
doc.setPassword("<New Password will come here>")
  • if we want to remove all security, such as master password and user password, then simply change as below

//Just add this line
doc.removeAllSecurity()

There are dozens of predefined common templates already present in PDFFiddler Playground to help you to start with.


#pdffiddler #pdfpasswordremoval #pdfplayground #pdfautomation

PDFFiddler is the leading technology platform for generating and manipulating files in the Portable Document Format (PDF). Its mission is to develop an open marketplace for PDF related products and services.

  • White LinkedIn Icon
  • White Facebook Icon
  • White Twitter Icon
  • White YouTube Icon

© 2020 by PDFFiddler