Re: HTML to PDF
On Mon, May 02, 2005 at 09:15:18PM +0300, Dan Kenigsberg wrote: More importantly, does mozilla -remote saveAS(google.ps,PostScript) work? Because this key step fails here (FC1), and if my memory does not fail me, this is what failed almost 3 years ago when I remarked about the incompleteness of -remote. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 Fedora Core release 1 (Yarrow) Yes, aparantly only supported by old netscape. $ a2ps -o test.ps test.html sh: line 1: netscape: command not found [test.html (html, delegated to Netscape): failed. Ignored] [No output produced] enscript simply prints the source of the page, BTW. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
On Tue, May 03, 2005 at 06:19:02PM +, Oleg Goldshmidt wrote: http://www.mozilla.org/unix/remote.html Lovely. From there one can easily find the code if (lastArgument.EqualsIgnoreCase(postscript, PR_TRUE)) { argument.Truncate(index); rv = NS_ERROR_NOT_IMPLEMENTED; } Does it stem of lack of resources (read: laziness) or principle? -- Dan Kenigsberghttp://www.cs.technion.ac.il/~dankenICQ 162180901 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
Oron Peled wrote: Haven't used it myself, but: http://www.htmldoc.org/ Looks like it does what you need. It does, if you don't need Hebrew. If you do, you're toast. Thanks for all the responses! I sadly conclude that common wisdom has it that short of firing up a VFB, starting a browser of sorts and having it dump PS or graphic, there is no simple, command-line/scriptable solution to take HTML to PDF if Hebrew is required. Hope I got it right. Sigh. Anyone care to help push htmldoc over the edge?... Thanks again everyone. Doron = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
Haven't used it myself, but: http://www.htmldoc.org/ Looks like it does what you need. -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron ICQ UIN: 16527398 Linux: like the air you breathe, ubiquitous and free = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
Dan Kenigsberg [EMAIL PROTECTED] writes: More importantly, does mozilla -remote saveAS(google.ps,PostScript) work? No. I didn't even know it existed... Because this key step fails here (FC1), and if my memory does not fail me, this is what failed almost 3 years ago when I remarked about the incompleteness of -remote. Trivial Google finds http://www.mozilla.org/unix/remote.html -- Oleg Goldshmidt | [EMAIL PROTECTED] | http://www.goldshmidt.org = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
I asked this on the 27/7/2002 I want to convert html pages to jpg/gif images. The plane is more like: 1. print a Web page to file 2. convert ps to jpg or gif How can I print from console ( with color ) to file a web page ? Does any body have a better way then i wrote above ? --- Zvi Harel Wrote: Html2ps (http://www.tdb.uu.se/~jan/html2ps-1.0b3) will convert html2ps, together with graphics, and gs (ghostscript) will convert ps to ppm (using -sDEVICE=ppmraw; see man ppm(5) about the portable pixmap file format), ppmtogif or ppmtojpeg will convert ppm to gif or jpeg, resp. (in RedHat 7.3, the latter programs are in the netpbm-progs-9.24-3 package). Using this approach you can control much better the quality of your images, and you can automate it by writing shell scripts to do it. --- Yotam Rubin Wrote: You could do the following: Start a new X-server, possibly xvfb. Call mozilla, sleep 30, use imagemagick's import program to obtain a screenshot of the website, use imagemagick's convert program to do some processing on the newly acquired snapshot. It's crude, but it should work. --- Matan Ziv-Av Wrote: If you want a text representation of the page, the lynx -dump should do what you want. If you want graphics representation, then as far as I know there are no such tools, but links-2 has graphics mode with a modular output drivers architecture, so I guess that adding a graphics -dump mode should be easy. --- Dan Kenigsberg Wrote: For some reason I fail to use netscape -remote, but if it wasn't deprecated you could: netscape netscape -remote openURL(http://your.url) netscape -remote SaveAs(site.ps, PostScript) gs -sDEVICE=jpeg -dBATCH -sOutputFile=site.jpg site.ps I know people are doing similar things on top of a framebuffer X server, so everything can be done safely from a script. Disclaimer: never tried it myself. And the next one: It is extremely impolite to quote myself, and furthermore say almost the same, but for the sake of the archive, I have to state that the following works just fine (though long ps file should be broken, I suppose): $ Xvfb :1 $ DISPLAY=:1 netscape $ DISPLAY=:1 netscape -remote openURL(iglu.org.il) $ DISPLAY=:1 netscape -remote saveAs(iglu.ps,PostScript) $ gs -sDEVICE=jpeg -sOutputFile=iglu.jpg iglu.ps Anyone have an idea why this nice -remote option was not ported completely into mozilla? Yet another priciple? --- Ok thats about it, Please note what worked best for you :) Cheers Doron Shikmoni wrote: Hi all, There was a thread here about two years ago regarding conversion of HTML to PDF with Hebrew charset. Apparently, htmldoc still isn't capable of doing that (although it's on its version roadmap); Is there an open-source solution for this, today? Thanks, Doron = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 Cel: 972-52-8555757 Fax: 972-4-6990098 http://www.canaan.net.il -- = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
Anyone have an idea why this nice -remote option was not ported completely into mozilla? Yet another priciple? I don't know what you mean by completely, but mozilla -remote openURL(http://www.google.com) works just fine for me with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Red Hat Enterprise Linux WS release 3 (Taroon Update 3) I don't recall it *ever* being broken... -- Oleg Goldshmidt | [EMAIL PROTECTED] | http://www.goldshmidt.org = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
On Mon, May 02, 2005 at 06:13:19PM +, Oleg Goldshmidt wrote: Anyone have an idea why this nice -remote option was not ported completely into mozilla? Yet another priciple? I don't know what you mean by completely, but mozilla -remote openURL(http://www.google.com) works just fine for me with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Red Hat Enterprise Linux WS release 3 (Taroon Update 3) I don't recall it *ever* being broken... More importantly, does mozilla -remote saveAS(google.ps,PostScript) work? Because this key step fails here (FC1), and if my memory does not fail me, this is what failed almost 3 years ago when I remarked about the incompleteness of -remote. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 Fedora Core release 1 (Yarrow) -- Dan Kenigsberghttp://www.cs.technion.ac.il/~dankenICQ 162180901 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
Hi Doron, Well, there is a sort-of solution. I used Konqueror to display the text, and then print the text into PDF. Thanks, Hetz On 5/1/05, Doron Shikmoni [EMAIL PROTECTED] wrote: Hi all, There was a thread here about two years ago regarding conversion of HTML to PDF with Hebrew charset. Apparently, htmldoc still isn't capable of doing that (although it's on its version roadmap); Is there an open-source solution for this, today? Thanks, Doron = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
Hetz, Hetz Ben Hamo wrote: Hi Doron, Well, there is a sort-of solution. I used Konqueror to display the text, and then print the text into PDF. Thanks for this. However (sorry for not including this in my posting), what I need is a command-line, scriptable tool which will accomplish this (much like htmldoc -t pdf). Thanks, Doron On 5/1/05, Doron Shikmoni [EMAIL PROTECTED] wrote: Hi all, There was a thread here about two years ago regarding conversion of HTML to PDF with Hebrew charset. Apparently, htmldoc still isn't capable of doing that (although it's on its version roadmap); Is there an open-source solution for this, today? Thanks, Doron = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] === To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
On Sun, May 01, 2005 at 05:49:50PM +0200, Hetz Ben Hamo wrote: Hi Doron, Well, there is a sort-of solution. I used Konqueror to display the text, and then print the text into PDF. Will work in mozilla too. But how will you adapt this for batch processing? run the browser on a dummy display? -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML to PDF
Doron Shikmoni wrote: Hetz, Hetz Ben Hamo wrote: Hi Doron, Well, there is a sort-of solution. I used Konqueror to display the text, and then print the text into PDF. Thanks for this. However (sorry for not including this in my posting), what I need is a command-line, scriptable tool which will accomplish this (much like htmldoc -t pdf). Try looking for a dcop interface for konquerir which does this (dcop konqueror) = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]