Turn a web page into an image using ColdFusion, Java, or the command line?

Native ancient solution in ColdFusion, which was used to work with HTML 3.x ...

<cfhttp url="#targetUrl#" resolveurl="yes"> 

<cfdocument format="pdf" name="pdfVar">
    #cfhttp.filecontent# 
</cfdocument> 

<cfpdf action="thumbnail" source="#pdfVar#" pages="1" destination="image">
<cfimage action="writeToBrowser" source="#image#">

Super slow, even with a cache, many CSS styles are missing or broken.

Any good server solution for capturing a displayed webpage in thumbnail? How is the service provided by http://www.shrinktheweb.com/ ?

Any solution for ColdFusion utility, Java or command line?

+3
source share
3 answers

In the end, we used SiteShoter, which uses IE as a rendering engine. http://www.nirsoft.net/utils/web_site_screenshot.html

0
source

- script, , , , .

http://khtml2png.sourceforge.net/

, , cfimage.

+1

If you have ColdFusion version 8 or higher, you can simply use CFDOCUMENT to create a sketch .

From a Ray post:

<cfdocument src="http://www.coldfusionjedi.com" name="pdfdata" format="pdf" />
<cfpdf source="pdfdata" pages="1" action="thumbnail" destination="." format="jpg" overwrite="true" resolution="high" scale="25">
0
source

All Articles