version 1.0.0

Title

webimage -- prints images from web files in pdf, png, jpeg, gif, and bmp format. For more information visit webimage homepage on GitHub.

Syntax

webimage [filename | http address] [,
replace export(str) phantomjs(str) ]

replace replace the exported diagram

export(str) specifies the image filename. The file extension specifies the
format and it can be .pdf, .png, .jpeg, .gif, or .bmp

phantomjs(str) specifies the path to executable
phantomjs software on the machine

Description

webimage converts web files and online
web addresses to graphical images including pdf, png, jpeg,
gif, and bmp formats.

the package can have many implications in statistics and data visualization.
many web applets are developed using JavaScript for data visualization and
presentation. however, these web-applications are usually stored in a HTML
file. the webimage package provides a solution for converting the web content
to a graphical file.

Third-party software

For exporting graphical files, the package requires phantomJS,
which is an open-source freeware available for Windows, Mac, and Linux. The
path to the executable phantomjs file is required in order to export the
graphical files.

Example(s)

rendering a web file to a PDF image
. webimage filename.html, export(./image.pdf) ///
phantomjs("/usr/local/bin/phantomjs")

rendering an online webpage to PNG
. webimage "http://www.google.com", export(./image.png) ///
phantomjs("/usr/local/bin/phantomjs")

Author

E. F. Haghish

Center for Medical Biometry and Medical Informatics

University of Freiburg, Germany

and

Department of Mathematics and Computer Science

University of Southern Denmark

haghish@imbi.uni-freiburg.de

http://www.haghish.com/markdoc

Package Updates on Twitter