How to convert .ps file to pdf file and protected by password


  • You need to install ghostscript
yum install ghostscript
  • After install ghostscript run the following command:
ps2pdf14 -dEncryptionR=3 -dKeylegth=128 -sOwnerPassword=mypassword -sUserPassword=mypassword input.ps output.pdf
  • Also you can use the following if you want compatibility with old version of Adobe Reader
ps2pdf12  - Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript
ps2pdf13 - Convert PostScript to PDF 1.3 (Acrobat 4-and-later  compatible) using ghostscript
ps2pdf14  - Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible) using ghostscript

Comments

Popular posts from this blog

How to clean all the foreman task and locked task

CentOS 7 Server Hardening Guide

How to restrict users to send only mail to the local domain in Zimbra