Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Converting HTML to PDF or PS (http://www.linux-archive.org/gentoo-user/6665-converting-html-pdf-ps.html)

Neil Bothwick 11-27-2007 09:07 PM

Converting HTML to PDF or PS
 
On Tue, 27 Nov 2007 13:53:10 -0800, felix@crowfix.com wrote:

> These web pages use Javascript; some render so-so without javascript,
> some don't render at all well. What I would like is some firefox (or
> Konqueror or ...) command line option to render the page and save it
> as any other format -- jpg, pdf, ps, doesn't matter.

You could probably do this with a shell script that loads Konqueror with
the given URL and send it DCOP command(s) to print.


--
Neil Bothwick

Don't just do something, sit there!

11-27-2007 09:14 PM

Converting HTML to PDF or PS
 
On Tue, Nov 27, 2007 at 10:07:10PM +0000, Neil Bothwick wrote:
> On Tue, 27 Nov 2007 13:53:10 -0800, felix@crowfix.com wrote:
>
> > These web pages use Javascript; some render so-so without javascript,
> > some don't render at all well. What I would like is some firefox (or
> > Konqueror or ...) command line option to render the page and save it
> > as any other format -- jpg, pdf, ps, doesn't matter.
>
> You could probably do this with a shell script that loads Konqueror with
> the given URL and send it DCOP command(s) to print.

Can you expand on that? What are DCOP commands and how would I sent
them to Konqueror? Is this easy enough with, say, Perl?

--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
--
gentoo-user@gentoo.org mailing list

11-27-2007 09:29 PM

Converting HTML to PDF or PS
 
On Tue, Nov 27, 2007 at 02:14:50PM -0800, felix@crowfix.com wrote:

> Can you expand on that? What are DCOP commands and how would I sent
> them to Konqueror? Is this easy enough with, say, Perl?

Never mind, google is my friend. This looks like it might do th
etrick. I have to find some way of using DCOP to print to PDF, and I
have to worry about setting up a KDE environment, but it looks doable.

--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
--
gentoo-user@gentoo.org mailing list

Ralf Stephan 11-28-2007 09:14 AM

Converting HTML to PDF or PS
 
You wrote
> I need to convert web pages to PDF files under program control,

* app-text/htmldoc [N 1.8.27] <target>
"Convert HTML pages into a PDF document"
-fltk ssl

Use flags:

* fltk: Adds support for the Fast Light Toolkit gui interface
* ssl: Adds support for Secure Socket Layer connections


ralf
--
gentoo-user@gentoo.org mailing list

11-28-2007 03:02 PM

Converting HTML to PDF or PS
 
On Wed, Nov 28, 2007 at 11:14:33AM +0100, Ralf Stephan wrote:
> You wrote
> > I need to convert web pages to PDF files under program control,
>
> * app-text/htmldoc [N 1.8.27] <target>
> "Convert HTML pages into a PDF document"
> -fltk ssl

I tried, but it has too many deficiencies, and doesn't support
javascript. The pages don't render well enough.

> * fltk: Adds support for the Fast Light Toolkit gui interface

I need to it run under program control, not a gui. I could do gui
with firefox.

--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
--
gentoo-user@gentoo.org mailing list


All times are GMT. The time now is 05:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.