Allows you to convert a web page to a PDF file.
Example
Running this code will create a PDF document named "HTML To PDF By HTML Code.pdf" with the following HTML code and properties:
<!DOCTYPE html>
<html>
<body>
<div id="container" style="width:500px">
<div id="header" style="background-color:#FFA500;">
<h1 style="margin-bottom:0;">My Cover Page</h1></div>
<div id="menu" style="background-color:#FFD700;height:200px;width:100px;float:left;">
<b>Menu</b><br>
HTML<br>
CSS<br>
JavaScript</div>
<div id="content" style="background-color:#EEEEEE;height:200px;width:400px;float:left;">
Content goes here</div>
<div id="footer" style="background-color:#FFA500;clear:both;text-align:center;">
Copyright © W3Schools.com</div>
</div>
</body>
</html>
- Page Header HTML: Default 1
- Page Footer HTML: Default 1
- Generate Toc: True
- Toc Header Test: TEST
- Page Size: Default
- Orientation: Default
- Margins: 0,0,0,0
- Zoom: 1
- Grayscale: False
- Low Quality: False
plugin command("Document Automation.dll", "html/url to pdf", #source, "{$special folder("Application")}\\HTML To PDF By HTML Code.pdf", " <!DOCTYPE html>
<html>
<body>
<div id=\"container\" style=\"width:500px\">
<div id=\"header\" style=\"background-color:#FFA500;\">
<h1 style=\"margin-bottom:0;\">My Cover Page</h1></div>
<div id=\"menu\" style=\"background-color:#FFD700;height:200px;width:100px;float:left;\">
<b>Menu</b><br>
HTML<br>
CSS<br>
JavaScript</div>
<div id=\"content\" style=\"background-color:#EEEEEE;height:200px;width:400px;float:left;\">
Content goes here</div>
<div id=\"footer\" style=\"background-color:#FFA500;clear:both;text-align:center;\">
Copyright © W3Schools.com</div>
</div>
</body>
</html> ", "Default 1", "Default 1", "True", "TEST", "Default", "", "", "Default", "0,0,0,0", 1, "False", "False")