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

Pdfcrowd Error: Object id #5

venkat wrote on 2013-12-19:
no able to export pdf from the server. its working locally . as per the reply of Please take a look for a possible solution in this StackOverflow question. i tried but not worked, change the filename of export and made it as export.pdf only. please help me to solve the issue asap.

attaching the export.pdf file which i made the support of pdfcrowd.php
support wrote on 2013-12-19:
Hello,

Please change the catch block as follows and let us know the output:
catch(PdfcrowdException $why)
{
  echo "Pdfcrowd Error: " . $why;
  echo $why->getTraceAsString();
}
venkat wrote on 2013-12-19:
I am getting the following error, please check and let me know how to fix.

Pdfcrowd Error: Object id #5#0 /var/www/html/rbusnp/pdfcrowd.php(91): PdfCrowd->http_post('http://pdfcrowd...', 'username=ananth...', NULL) #1 /var/www/html/rbusnp/export.php(595): PdfCrowd->convertHtml('??????
venkat wrote on 2013-12-20:
I updated the error, let me know how to fix the issue.

Pdfcrowd Error: Object id #5#0 /var/www/html/rbusnp/pdfcrowd.php(91): PdfCrowd->http_post('http://pdfcrowd...', 'username=ananth...', NULL) #1 /var/www/html/rbusnp/export.php(595): PdfCrowd->convertHtml('??????
support wrote on 2013-12-20:
Hello,

Unfortunately, this output does not give enough information. Could you try to change it to the following and let me know the output now?

catch(PdfcrowdException $why)
{
  echo "Pdfcrowd Error: " . $why . "\n";
  echo "Location: " . $why->getFile() . ":" . $why->getLine() . "\n";
  echo $why->getTraceAsString() . "\n";
}
venkat wrote on 2013-12-23:
The following error i am getting after update the catch . please let me know what is the issue.

Pdfcrowd Error: Object id #5 Location: /var/www/html/rbusnp/pdfcrowd.php:442 #0 /var/www/html/rbusnp/pdfcrowd.php(91): PdfCrowd->http_post('http://pdfcrowd...', 'username=ananth...', NULL) #1 /var/www/html/rbusnp/export.php(595): PdfCrowd->convertHtml('??????
support wrote on 2013-12-26:
Hello,

This is some problem with cURL. It is hard to determine the exact reason without being able to replicate this issue in our environment. The exception is thrown in pdfcrowd.php, line 442. I would recommend that you add some print or debug statements around this code, and try to figure out what goes wrong.