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

Page Element Problem

EmanueleGiarlini wrote on 2012-08-24:
I' have a problem with the element on the PDF document created using your library.

When i use the online converter(https://pdfcrowd.com/) i get a pdf document that respect my idea(the attachment called IS_OK.pdf).

When i try to create a document using your library i get a different pdf document and one chart disappears(the attachment called NOT_OK.pdf).

Where is the problem with my code?
How could i manage the pdf setting to obtain the same result?

<?php
require 'pdfcrowd.php';

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

    // convert a web page and store the generated PDF into a $pdf variable
    $pdf = $client->convertURI('http://proginfo.altervista.org/mybidmontato/backend/pdf_report.php');

    // set HTTP response headers
    header("Content-Type: application/pdf");
    header("Cache-Control: no-cache");
    header("Accept-Ranges: none");
    header("Content-Disposition: attachment; filename= $name");
	
	
    // send the generated PDF 
    echo $pdf;
}
catch(PdfcrowdException $why)
{
    echo "Pdfcrowd Error: " . $why;
}
?>
support wrote on 2012-08-25:
Missing or incomplete charts are often caused by animation turned on. If possible turn the animation off.

I tried to run your code and the resulting pdf seems ok. Do you still experience the problem?