This is an archived forum post. The information may be outdated. Contact us if you have any questions.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script>
$(function() {
$("#createPdf").click(function() {
$("#pdfsrc").val("<b>your html code</b>")
$("#createPdfForm").submit();
});
});
</script>
</head>
<body>
<form method="post" action="http://pdfcrowd.com/api/pdf/convert/html/" id="createPdfForm" >
<input type="hidden" name="username" value="***" />
<input type="hidden" name="key" value="***" />
<input type="hidden" name="src" id="pdfsrc" value="test"/>
<input type="hidden" name="width" value="210mm" />
<input type="hidden" name="height" value="297mm" />
<input type="hidden" name="pdf_name" value="dashboard.pdf" />
<input type="button" id="createPdf" value="create PDF" />
</form>
</body>
</html>