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

how to print the hightchart when creating pdf

surianup_2000 wrote on 2014-12-05:
I am using the php library and and using the convertURI() function also I have used enableJavaScript(True) function to create the chart on pdf but highchart to printing why this happing please anyone can help me here
support wrote on 2014-12-05:

Is there any way we can reproduce your problem?
surianup_2000 wrote on 2014-12-29:
I am using the conevrtURL() function to convert my php page to PDF and strings are printing on the PDF.there is highchart on that page which is not printing as output.
I am attaching my code which I have wrote for this.please let me know there is any mistake i the code...

Thanks in advance.

$client = ***************************

$javar = $client->enableJavaScript();
$pdf = $client->convertURI($url,$javar);

header("Content-Type: application/pdf");
header("Cache-Control: max-age=0");
header("Accept-Ranges: none");
header("Content-Disposition: attachment; filename=\"Ybintel Hotel.pdf\"");
echo $pdf;
catch(PdfcrowdException $why)
echo "Pdfcrowd Error: " . $why;
support wrote on 2014-12-29:

The code looks fine. Make sure that you disabled the initial chart animation:
surianup_2000 wrote on 2014-12-30:
chart: {

renderTo: 'revenue',

type: 'column',

animation: false,

events: {}

exporting: {

enabled: false

plotOptions: {

column: {

pointPadding: 0.2,

borderWidth: 0



I am using like this..I think it is fine and animation has been stopped while loding the page but did not create the Graph in the PDF. please let me know if there is any mistake..
support wrote on 2015-01-02:

Could you please post a link to a full HTML code that demonstrates the problem?