Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl (http://www.velocityreviews.com/forums/f17-perl.html)
-   -   Printing Postscript in Perl (http://www.velocityreviews.com/forums/t24928-printing-postscript-in-perl.html)

Arthur 03-07-2004 03:08 AM

Printing Postscript in Perl
 
Hi Everyone,

I'm having a real hard time with this. Maybe some smarter people can
assist.

I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
able to print Postscript, bold, underline, different fonts, etc from
within a Perl script.

I have absolutely no idea where to start or what to do. My
/etc/printcap file looks pretty shallow:

HPLJ4|HP Laserjet 4:rm=nitelife:rp=HPLJ4:

I set my printer up using the DrakConf program. I can print, but just
not any formatted text or anything.

I see so much information around, that I'm lost as to which really
applies to me situation.

Any help would be appreciated.

Thanks,

Arthur

Jürgen Exner 03-07-2004 03:21 AM

Re: Printing Postscript in Perl
 
Arthur wrote:
> I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
> able to print Postscript, bold, underline, different fonts, etc from
> within a Perl script.


How do you print a regular Postscript file today, i.e. without using a Perl
script?
Then just mimic that code in your Perl script and you are all set.

jue



Roel van der Steen 03-07-2004 08:01 AM

Re: Printing Postscript in Perl
 
In article <8b622eae.0403061908.7ccb283a@posting.google.com >, Arthur wrote:
> I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
> able to print Postscript, bold, underline, different fonts, etc from
> within a Perl script.

Go to CPAN en look for PostScript:: modules:
PostScript::BasicTypesetter or Postscript::Simple
may do what you want.

Then spool your results to a RAW queue.

Cheers, Roel van der Steen


All times are GMT. The time now is 07:59 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.