This is an archived forum post. The information may be outdated. Contact us if you have any questions.
require 'pdfcrowd.php'; try { // create an API client instance $client = new Pdfcrowd("neo2504", "############################"); // $docoded contains the html code $pdf = $client->convertHtml($decoded); // set HTTP response headers header("Content-Type: application/pdf"); header("Cache-Control: max-age=0"); header("Accept-Ranges: none"); header("Content-Disposition: attachment; filename=\"options.pdf\""); // send the generated PDF echo $pdf; } catch(PdfcrowdException $why) { echo "Pdfcrowd Error: " . $why; }
<head><link rel="stylesheet" type="text/css" href="http://vladradu.altervista.org/style.css" media="print"></head>
$client->usePrintMedia(True)