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

Pdfcrowd Error: [26] failed creating formpost data

rubasingha wrote on 2012-09-06:
Hello EveryOne,

Im New to Pdfcrowd and I want to convert my local html files to pdf
so im use
$pdf = $client->convertFile("abcde.html");

file path is correct Pdfcrowd.php , Pdfcrowd_Test.php and abcde.html are in same location.
Im use wamp server and in local host im try to get pdf output using above conditions

But it always display

Pdfcrowd Error: [26] failed creating formpost data

Im unable to generate PDF by using my local file
But when I use
$pdf = $client->convertURI('');
Its file and working

Please help me soon as possible
Thank You
support wrote on 2012-09-06:

could you try to use an absolute path to the file?
$pdf = $client->convertFile("c:/path/to/abcde.html");

Does this help?
rubasingha wrote on 2012-09-07:
Now Its working but the format is not in pdf. That means my local html file have some images but the converted pdf file not contain that images. Now what i have to do.
Thank You
support wrote on 2012-09-10:
The images must be publicly accessible somewhere and you need to link to them using an absolute URL. A very easy way to make them public is to use for instance
Another option is to zip the images together with the html document into a single .zip file and upload it with the convertFile() method.