Postscript to PDF converter README
- NUP - To shrinks n-pages into 1 page.
- PS - Postscript Format
- PDF - Portable Document Format
ps2pdf.pl is a Perl script that will convert a given file from postscript file format into PDF format. This script basically spawns "nup" and "ps2pdf" and "chmod" commands with a number of parameter options. The script is written so that it integrates the nup option into the existing ps2pdf program. By running this script, one can convert a postscript file into PDF format and also nup it at the same time.
I like simplification. There is no intermediate files to create and remove, and no two programs to run.
In order to run ps2pdf.pl successfully, you must install the program called "nup" and "ps2pdf". You will also need the Perl interpreter with the Getopt module.
Note: Make sure you are running ps2pdf.pl not ps2pdf the program!
You can give ps2pdf.pl a number of different types of parameters:
- -i <filename> - The input postscript filename
- -o <filename> - The output PDF filename (optional)
- -p <number> - The number of pages shrinked to one page (must be 2,4,8, or 16) (option)
- -s <number> - The starting offset page (optional)
- -override <yes> - It must be set to "yes" if you want the script to overwrite files
- -perm <perm> - Sets the output file permission when completed (must be in octal format)
For example:
ps2pdf.pl my.ps (creates my1.pdf)
ps2pdf.pl my.ps -o my.pdf
ps2pdf.pl my.ps -4 (creates my4.pdf)
ps2pdf.pl my.ps -perm 644 (creates my1.pdf with with global read permission)
None. Period.
Although I've spend much effort trying to test many cases,
you are the one who is sending in parameters, so be smart about it.
Obviously if you throw a bomb into a elevator, it's going to blow up,
an engineerer can't save it.
If you like sending bad parameters into the program and want to see what happens,
well, then you have to accept the responsibilities.
This documentation and the script is copyleft.
See http://www.gnu.org/copyleft/copyleft.html for more information.