Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> One way is to print to postscript and convert back to pdf, but then you can't copy text from it.

If you use the following GhostScript command it's still possible to select the text in the unprotected PDF.

    "%ProgramFiles%\gs\gs9.22\bin\gswin64c.exe" -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=%windir%/fonts;xfonts;. -sPDFPassword= -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true -sOutputFile=Unprotected.pdf Protected.pdf


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: