Hello,
I have a pdf (no security) that I convert into ps using acroread. I then pass that postscript file to ghostscript so I can distill it for the web.
PHP Code:
acroread -toPostScript -pairs -binary -fast -pairs first.pdf first.ps
gs -q -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile=web.pdf first.ps
That works fine.
Now if I want to add security to the web.pdf Acrobat displays a error "Unable to extract embedded font ..." and all the text are dots.
Here are my commands
PHP Code:
acroread -toPostScript -pairs -binary -fast -pairs first.pdf first.ps
gs -q -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile=web.pdf -sOwnerPassword=null -dEncryptionR=2 -dKeyLength=40 -dPermissions=-64 first.ps
Any help would be appreciated. I've been researching this all day.
Thanks!