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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autmoted HTML Printing?

Status
Not open for further replies.

thenewa2x

Programmer
Dec 10, 2002
349
US
Is there a way to batch print HTML pages from an online source? I tried searching Google and Source Forge and nothing relevant came up. I do not want a GUI, just something simple such as a command line program.

Example syntax:
[tt]printhtml -d <printername> <list of urls to print>[/tt]

It would also be nice to be able to specify which printer to print to.

---------------------------------------
TINSTAAFL, which is why I contribute.
 
I don't understand exactly the batch printing of HTML but if I hear you correctly you wanto to output pages' HTML code to your printer.


Have you tried to pipe curl output through your printer?

Code:
curl [URL unfurl="true"]http://www.page.com[/URL] | lpr -Pyourprintername

You can then create a script that automates whatever you are trying to achieve.



QatQat


Life is what happens when you are making other plans.
 
You could either curl or wget the pages and then print them using html2text or the like. I do this for printing my baily "newspaper" grabbing local weather and slashdot stories.

[plug=shameless]
[/plug]
 
My intent was to print an HTML page (no source code) to the printer like you would in Firefox but without a GUI in Linux. I realized that in my project I would come across authentication issues this way.

Thanks for trying to help anyway.

---------------------------------------
TINSTAAFL, which is why I contribute.
 
Search for "html2ps". It should do what you want, and might handle graphics, though I can't speak from experience.
 
Yeah, the thing was that the authentication was to be handled by the user and it could very from site to site. I considered having the user print without knowing (somehow with Firefox extension) and store it in a location that would be later uploaded to a server for printing. The next day they can come to the printer and pickup what was printing over night.

---------------------------------------
TINSTAAFL, which is why I contribute.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top