Conversion example of text from HTML Editor to PDF
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Demo of Web2Pdf Api</title>
<!-- Skin CSS file -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.9.0/build/assets/skins/sam/skin.css" />
<!-- Utility Dependencies -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.9.0/build/element/element-min.js"></script>
<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.9.0/build/container/container_core-min.js"></script>
<!-- Source file for Rich Text Editor-->
<script type="text/javascript" src="http://yui.yahooapis.com/2.9.0/build/editor/simpleeditor-min.js"></script>
<script type="text/javascript">
var myEditor = new YAHOO.widget.SimpleEditor('CUrl', {
height: '300px',
width: '600px',
dompath: true
});
myEditor.render();
YAHOO.util.Event.on('btnConvert', 'click', function () {
myEditor.saveHTML();
});
</script>
</head>
<body>
<form id="form1" action="http://do.convertapi.com/Web2Pdf" method="post">
<div style="width: 600px; margin: auto;">
<h3>
Conversion example of text from HTML Editor to PDF using Rest API <a href="http://www.convertapi.com"
target="_blanks">http://www.convertapi.com</a></h3>
<div class="yui-skin-sam">
<textarea name="CUrl" id="CUrl" cols="50" rows="10">
<strong>Your</strong> HTML <em>code</em> goes here.<br />
<img src="http://www.programmableweb.com/images/apis/at4521.png" border="0" alt="ConvertAPI">
</textarea>
</div>
<br />
<br />
<a href="http://www.convertapi.com/prices" target="_blanks">Api Key(leave empty if you
don't have...