Now open your terminal and type.
$ pdftops protected.pdf out.ps $ pstopdf out.ps out.pdfThe out.pdf will be your unprotected PDF.
If you don't have pstopdf and pdftops installed then type this at terminal to install them.
$ sudo apt-get install context
Source: blog.dipinkrishna.info