CutyCapt CutyCapt is a small cross-platform command-line utility to capture WebKit's rendering of a web page into a variety of vector and bitmap formats, including SVG, PDF, PS, PNG, JPEG, TIFF, GIF, and BMP. See IECapt (http://iecapt.sourceforge.net/) for a similar tool based on Internet Explorer. Status CutyCapt has a number of known quirks, most of which are caused by problems with Qt and/or WebKit. For example, while plugin support can be enabled, and the plugins execute properly, their rendering cannot be captured on some platforms. Use of with caution. Requirements CutyCapt depends on Qt 4.4.0+. Source code The source code is available in the SVN repositorty http://cutycapt.svn.sourceforge.net/viewvc/cutycapt/CutyCapt/ Usage Open a command prompt and ask for help: % CutyCapt --help ----------------------------------------------------------------------------- Usage: CutyCapt --url=http://www.example.org/ --out=localfile.png ----------------------------------------------------------------------------- --help Print this help page and exit --url= The URL to capture (http:...|file:...|...) --out= The target file (.png|pdf|ps|svg|jpeg|...) --out-format= Like extension in --out, overrides heuristic --min-width= Minimal width for the image (default: 800) --min-height= Minimal height for the image (default: 600) --max-wait= Don't wait more than (default: 90000, inf: 0) --delay= After successful load, wait (default: 0) --user-styles= Location of user style sheet, if any --header=: request header; repeatable; some can't be set --method= Specifies the request method (default: get) --body-string= Unencoded request body (default: none) --body-base64= Base64-encoded request body (default: none) --app-name= appName used in User-Agent; default is none --app-version= appVers used in User-Agent; default is none --user-agent= Override the User-Agent header Qt would set --javascript= JavaScript execution (default: on) --java= Java execution (default: unknown) --plugins= Plugin execution (default: unknown) --private-browsing= Private browsing (default: unknown) --auto-load-images= Automatic image loading (default: on) --js-can-open-windows= Script can open windows? (default: unknown) --js-can-access-clipboard= Script clipboard privs (default: unknown) --print-backgrounds= Backgrounds in PDF/PS output (default: off) ----------------------------------------------------------------------------- is svg,ps,pdf,itext,html,rtree,png,jpeg,mng,tiff,gif,bmp,ppm,xbm,xpm ----------------------------------------------------------------------------- http://cutycapt.sf.net - (c) 2003-2010 Bjoern Hoehrmann - bjoern@hoehrmann.de Using CutyCapt without X server You cannot use CutyCapt without an X server, but you can use e.g. Xvfb as light-weight server if you are not running an interactive graphical desktop environment. For example, you could use: % xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=... --out=... Author Björn Höhrmann bjoern@hoehrmann.de