Home > Archive > PERL Beginners > December 2006 > Module for printing file with CUPS
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 |
Module for printing file with CUPS
|
|
| Toddy Prawiraharjo 2006-12-19, 9:59 pm |
| Hello all,
I am starting to learn how to print via perl in linux. I have setup a
network printer (using CUPS), which support TCP/IP and socket (9100).
What module do i need, if necessary, to print a file using that printer?
Thanks in advance
Toddy
| |
| Larry Johnson 2006-12-20, 9:58 pm |
|
Toddy Prawiraharjo <toddyp@b2be.com> wrote: Hello all,
I am starting to learn how to print via perl in linux. I have setup a
network printer (using CUPS), which support TCP/IP and socket (9100).
What module do i need, if necessary, to print a file using that printer?
Thanks in advance
Toddy
I haven't used it, but there's a module on CPAN called Net::CUPS. Glancing at the methods it provides it looks to me like it may by what you need.
http://search.cpan.org/~dhageman/Ne...nter/Printer.pm
Larry
| |
|
| also be aware that in previous versions of CUPS there was a native
ability to print directly to a file; per the cups users group it was
removed at some point because too many people were complaining about
how difficult/unintuitive it was (seems like if i could figure it out
at the time, anybody could, but oh well. also seems rather anal and
bass-ackwards to remove a perfectly good function instead of improving
it, but again - oh well). i discovered that when i needed to migrate
that particular program to a newer version of linux - and couldn't
because that functionality no longer existed and any help was
reluctant at best. you might check to see if anyone on the CUPS side
knows if that functionality has been revived.
On 12/20/06, Larry Johnson <larryfeltonj@yahoo.com> wrote:
>
>
> Toddy Prawiraharjo <toddyp@b2be.com> wrote: Hello all,
>
> I am starting to learn how to print via perl in linux. I have setup a
> network printer (using CUPS), which support TCP/IP and socket (9100).
> What module do i need, if necessary, to print a file using that printer?
>
> Thanks in advance
>
> Toddy
>
>
> I haven't used it, but there's a module on CPAN called Net::CUPS. Glancing at the methods it provides it looks to me like it may by what you need.
>
>
> http://search.cpan.org/~dhageman/Ne...nter/Printer.pm
>
> Larry
>
>
--
since this is a gmail account, please verify the mailing list is
included in the reply to addresses
| |
| Zentara 2006-12-20, 9:58 pm |
| On Wed, 20 Dec 2006 14:25:33 +1100, toddyp@b2be.com ("Toddy
Prawiraharjo") wrote:
>Hello all,
>
>I am starting to learn how to print via perl in linux. I have setup a
>network printer (using CUPS), which support TCP/IP and socket (9100).
>What module do i need, if necessary, to print a file using that printer?
>
>Thanks in advance
>
>Toddy
I don't have such a printer, but I would bet that the Net-Cups module
will handle it, if CUPS will.
If you want graphical dialogs, try Gtk2::Ex::PrintDialog;
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
|
|
|
|
|