RES: Bar Charts in PDFs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom:

You can try:

http://www.tcpdf.org/ to generate pdf.
And http://jpgraph.net/ To generate chart.

EX: to add a image to a pdf document:

$pdf->Image( '/home/peter/test.png',
             127.78, 15,          // left and right
             74.93, 6.42,         // width and height
            'PNG', '', 'T', false, 300 );

With this tcpdf i create a legal documents for Brazilian government.

Alejandro MS
-----Mensagem original-----
De: Tom Barrett [mailto:tom@xxxxxxxxxxxxxxx] 
Enviada em: sexta-feira, 11 de fevereiro de 2011 06:55
Para: php-general@xxxxxxxxxxxxx
Assunto:  Bar Charts in PDFs

Hi

I need to generate some PDF reports (1000s). Part of the report is a set of
bar charts (the results of a questionnaire). Each question has the same 5
answers (v.bad, bad, ok ,good, v.good) and the chart is the % distribution
of the answers.

My plan is to create a HTML version, using "some graph drawing"* (saving a
copy of the HTML to disk), creating a PDF version using html2pdf (saving a
copy to disk and emailing to the recipient).

I think html2pdf can handle this. But I have not had much success finding
something to draw my graphs. Any (free) simple libraries out there I could
be pointed towards?

Thanks!
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux