Home > Archive > PERL Modules > July 2004 > Printing of PDF Files
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Printing of PDF Files
|
|
| Domenico Discepola 2004-07-12, 3:58 pm |
| Hello all. My goal is to be able to programmatically print Adobe PDF files
without using Acrobat Reader. I searched CPAN and found a whole slew of PDF
modules that allow you to edit, create, etc. PDF files but none to
explicitly print. Is there such a module (e.g. PDF::Print)?
I originally created a Perl script that converted the PDF to PS, then
printed the PS file but I would prefer to save a step and directly print the
PDF file...
Domenico
| |
| Heiko Klein 2004-07-14, 8:56 am |
| Domenico,
PDF and PS are among others printer formats. There are several
possiblities to print PDF files directly:
a) Buy a printer who can print PDF natively (expensive)
b) Configure your printing-system so that it converts PDF automatically
to your printers language. (requires knowledge and administrative rights
of your operating/printing system)
c) Convert the pdf to ps within your program: Since you want to do it
automatically, on unix, you can use acroread or gs (don't know about
acroread on windows, gs works at any rate):
system "gs -sDEVICE=pswrite -sOutputFile=$default -dBATCH -dNOPAUSE
$pdffile";
or
system "acroread -toPostScript $pdffile";
(Step b) normally involves one of the two c) solutions.)
Heiko
Domenico Discepola wrote:
> Hello all. My goal is to be able to programmatically print Adobe PDF files
> without using Acrobat Reader. I searched CPAN and found a whole slew of PDF
> modules that allow you to edit, create, etc. PDF files but none to
> explicitly print. Is there such a module (e.g. PDF::Print)?
>
> I originally created a Perl script that converted the PDF to PS, then
> printed the PS file but I would prefer to save a step and directly print the
> PDF file...
>
> Domenico
>
>
|
|
|
|
|