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

Corrupted pdf

greeniq wrote on 2016-12-19:
When converting html to pdf, i loose all images and the file gets corrupted (attached both html and pdf)
works the same with convertFile and convertHtml

the (PHP) code:

$client = new Pdfcrowd("****", "******");
$client->enableJavaScript(true);
$client->enableImages(true);
$client->usePrintMedia(true);
$client->convertHtml($html);