sudo apt-get install pdftk pdf2htmlex #remove DRM pdftk input.pdf output output.pdf #Remove DRM and Password pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HERE #convert pdf to HTML without losing formating pdf2htmlEX output.pdf #file is not an html file named output.html #you can now edit this and if you want print it back to pdf # sudo apt-get install qpdf qpdf --password= --decrypt input.pdf output.pdf ####NOTE#### #to edit pdf directly use flpsed sudo aptitude install flpsed