| html.parse(data);
|
load html document |
| html.loadFromUrl(url) |
load html document from url |
| html.loadFromFile(filename) |
load html document from file |
| |
|
| html.resize(width,height); |
size html document to given dimensions |
| html.writeToPdf(pdf);
|
write paganated html to pdf |
| html.writeToPdfFit(pdf);
|
expand a PDF page to the extents of the html document |
| html.writeToCanvas(canvas) |
output HTML document as an Image to an HTML5 Canvas |
| |
|
| width = html.width(); |
document width (pixels) |
| height = html.height(); |
document height (pixels) |
| |
|
| html.convertImageCommand
= 'http://yoursite/cgi-bin/CollinsImage.cgi?input={href}&format=.jpg'; |
| html.imagePath =
"./Images/"; |