Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphic printing from Perl 1

Status
Not open for further replies.

TonyGroves

Programmer
Aug 13, 2003
2,389
IE
I want some of my Perl programs to be able to send graphic output (formatted text, lines, etc.) to a laser/inkjet printer attached to a Windows system. Can anybody suggest the best way to approach this? I suppose I could send raw Postscript/PCL/whatever to certain printers, but is there a more generic, preferably cross-platform, way to do it?

Any suggestions would be appreciated.

Thanks a lot.
 
I would use almost certainly use HTML

I can write a bit of Postscript - and have used it for stuff in the past... but as you must be aware - it is nowhere near as easy as HTML. Also, HTML supports graphics, fonts, tables, colours, etc. etc. - and is pretty easy to get Perl to write. Trying to embed a graphic into Postscript is damn hard! You pretty much have to start reading the DSC standard, and this is not for the feint hearted


Kind Regards
Duncan
 
Thanks for that. HTML is certainly a good way to produce formatted output. Then, I have to figure out a way to print the HTML. Hmm ... I'll work on that one.
 
For anybody who might be interested ...

I found a Windows program called HTMLPrint, at , which silently prints a HTML file, taking all its options from a simple config file. It seems quite neat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top