On Wed, 11 Dec 2002 22:06:24 +0000, Adam Lock <[EMAIL PROTECTED]>
wrote:
>Pete wrote:
>
>>Is there a way to render a page offscreen and save the image to a
>>file? I want to be able to pass a program a URL, and have the output
>>be a JPG file on disk.
>>
>>So far the only method I could come up with is to render to the
>>screen, and do a screen capture. I really would like the process to
>>work in the background, offscreen.
>>
>>My preferred OS/windowing environments are (in order) solaris/X (VFB);
>>Linux X/GTK; Microsoft Windows. Native Java would be great, but C++
>>(or other) would be OK as long as I could get it to work!
>>
>>TIA
>>
>> -Pete-
>>
>It may actually be easier on Linux/Unix than other platforms. Perhaps
>you can print the page to file as postscript and then have Ghostscript
>render the page as a thumbnail gif.
That is an interesting idea. I would guess that the page is rendered
before printing, even if the "window" is not visible on the screen.
I will give it a try (assuming I can figure out how to "print" a
window from Linux/GTK/X)
-Pete-