Get the latest Version of PDFprint from:
http://www.geocities.com/CapeCanaveral/Lab/3469/pdfprint.html
or CPAN
Get and compile the xpdf software, inside you can find pdftops
and pdftotext tools:
http://www.aimnet.com/~derekn/xpdf/
Also, you can use the option -toPostScript of
Acrobat Reader or,
if you have just compiled
Ghostscript 5.xx, you can use pdf2ps script
To manipulate PostScript file, get and compile the psutils software,
inside you can find psselect and pstops tools:
http://www.dcs.ed.ac.uk/home/ajcd/psutils/
If you have just compiled
Ghostscript 5.xx, you can use ps2ascii script
Make sure you have Perl Version 5.003 or later on your
system:
http://www.perl.com/perl/info/software.html
-
Create your personal pdfprint.cfg file.
You can change the value of tmpdir, converter,
filter and print variables.
With tmpdir you can set the directory for the temporary files.
You can use relative and absolute path. Default is /tmp.
With converter you can use pdf2ps, pdftops or
acroread -toPostScript to convert
PDF files to PostScript files, pdftotext to convert PDF files
to ASCII files.
You can use psselect or pstops to modify PostScript files
to PoscScript files ps2ascii to convert PostScript files to ASCII
files.
In acroread -toPostScript you can specify to convert to Level 2
PostScript (default is Level 1 PostScript) with -level2 option.
In pdftops and pdftotext you can specify the pages to
convert with the options
- -f number the first page to convert
- -l number the last page to convert
In pdftops you can specify to convert to Level 1 PostScript
(default is Level 2 PostScript) with -level1 option.
In pdftotext you can specify to convert to 7-bit ASCII
(default is 8-bit ISO Latin-1) with -ascii7 option.
In psselect you can use these options:
- -r output the selected pages in reverse order
- -ppages specifies the pages which are to be
selected. Pages is a comma separated list of page ranges,
each of which may be a page number, or a page range of the
form first-last. If first is omitted, the first page is
assumed, and if last is omitted, the last page is assumed.
With filter you can use pstops to perform a large number of
arbitrary rearrangements of Documents, including arranging for printing
2-up, 4-up, booklets, reversing, selecting front or back sides of
documents, scaling, etc.
With printer you can use printing commands like lpr and lp
or monitor commands like more and pg.
Every PDF or PostScript file, you have selected, is converted with the
selected converter tool, then filtered with the selected filter tool
(default is nothing) and then printed with the selected printer tool.
-
Try to start PDFprint. You can use the two test files in tests directory:
pdfprint.pdf and pdfprint.ps. Type ./pdfprint ./tests/pdfprint.pdf
or ./pdfprint ./tests/pdfprint.ps on the command line