This is an archived forum post. The information may be outdated. Contact us if you have any questions.

pdf stay empty with API ... (php)

tit wrote on 2016-10-19:
Hi there.
Can someone help me please ?
My generated PDF only has his own filename into... nothing else...
My HTML file is a full page...
don't understand... ?

require 'pdfcrowd.php';

// create an API client instance
$client = new Pdfcrowd("***********", "****************");

$pdf = $client->convertFile('BT1476867149971.html');
$out_file = fopen('BT1476867149971.pdf', "wb");
$client->convertHtml('BT1476867149971.html', $out_file);
catch(PdfcrowdException $why)
echo "Pdfcrowd Error: " . $why;
support wrote on 2016-10-21:

Please send us BT1476867149971.html to and we will look into it.