This is an archived forum post. The information may be outdated. Contact us if you have any questions.
<input type=text value="sample text" />
<a href="javascript:DoPDFCrowdThing()">Save as PDF</a>
function DoPDFCrowdThing() { // using jQuery $("input", "form").each(function() { // replace the html with the input value $(this).html($(this).val()); }); // send to pdfcrowd to prompt for file save window.location = "http://pdfcrowd.com/url_to_pdf/?width=8.5in&height=11in"; }
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="pdf-it.js"></script>
function DoPDFCrowdThing() { // using jQuery $("input", "form").each(function() { // replace the html with the input value $(this).html($(this).val()); }); // send to pdfcrowd to prompt for file save window.location = "http://pdfcrowd.com/url_to_pdf/?width=8.5in&height=11in"; }
<input type="text" name="input3" value="" style="height:25px; width:340px; border:0px; border-bottom:solid 1px #001a2d;; font-size:15px; color: #666; font-family:Arial; background:#fff;" />
<?php echo $input1; ?>
$pdf = $client->convertHtml(<html code generated by print-version.php>);
$pdf = $client->convertURI("http://safemoneymillionaire.com/blueprint-online/print-version.php");
<form method="post" action="print-version.php" name="blue"> <input type="text" name="input1" value="" style="height:25px; width:440px; border:0px; border-bottom:solid 1px #001a2d;; font-size:15px; color: #666; font-family:Arial; background:#fff;" />
$input1 = $_POST['input1']; $input2 = $_POST['input2']; $input3 = $_POST['input3']; $input4 = $_POST['input4']; $input5 = $_POST['input5']; $input6 = $_POST['input6']; $input7 = $_POST['input7']; $input8 = $_POST['input8']; $input9 = $_POST['input9']; $input10 = $_POST['input10']; $input11 = $_POST['input11'];
$pdf = $client->convertHtml('amazing <em>HTML</em> here');
$pdf = $client->convertHtml('Input field 1 text is the following: <b>'.$input1.'</b>');