Advertisement
metalx1000

PDF removing DRM and Editing as HTML

Apr 18th, 2015
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. sudo apt-get install pdftk pdf2htmlex
  2.  
  3. #remove DRM
  4. pdftk input.pdf output output.pdf
  5.  
  6. #Remove DRM and Password
  7. pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HERE
  8.  
  9. #convert pdf to HTML without losing formating
  10. pdf2htmlEX output.pdf
  11.  
  12. #file is not an html file named output.html
  13. #you can now edit this and if you want print it back to pdf
  14. #<html xmlns="http://www.w3.org/1999/xhtml" contenteditable="true">
  15.  
  16. sudo apt-get install qpdf
  17. qpdf --password=<password> --decrypt input.pdf output.pdf
  18.  
  19. ####NOTE####
  20. #to edit pdf directly use flpsed
  21. sudo aptitude install flpsed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement