| | |
Export .php to pdf(with table)
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2009
Posts: 24
Reputation:
Solved Threads: 0
Hi.
I'm doing exporting from .php to .pdf now and face a little problem here.
I've found something like below and I think it might be helpful for me to do exporting to pdf.
However, in my .php file, it's including display of table. (and I cant get anything about that in tutorials I've found so far)
How can I do to have the table in pdf?
Thanks in advance. Have a nice day =P
I'm doing exporting from .php to .pdf now and face a little problem here.
I've found something like below and I think it might be helpful for me to do exporting to pdf.
PHP Syntax (Toggle Plain Text)
<?php $mypdf = PDF_new(); PDF_open_file($mypdf, ""); PDF_begin_page($mypdf, 595, 842); $myfont = PDF_findfont($mypdf, "Times-Roman", "host", 0); PDF_setfont($mypdf, $myfont, 10); PDF_show_xy($mypdf, "Sample PDF, constructed by PHP in real-time.", 50, 750); PDF_show_xy($mypdf, "Made with the PDF libraries for PHP.", 50, 730); PDF_end_page($mypdf); PDF_close($mypdf); PDF_delete($mypdf); ?>
However, in my .php file, it's including display of table. (and I cant get anything about that in tutorials I've found so far)
How can I do to have the table in pdf?
Thanks in advance. Have a nice day =P
0
#2 Oct 12th, 2009
•
•
•
•
Hi.
I'm doing exporting from .php to .pdf now and face a little problem here.
I've found something like below and I think it might be helpful for me to do exporting to pdf.
PHP Syntax (Toggle Plain Text)
<?php $mypdf = PDF_new(); PDF_open_file($mypdf, ""); PDF_begin_page($mypdf, 595, 842); $myfont = PDF_findfont($mypdf, "Times-Roman", "host", 0); PDF_setfont($mypdf, $myfont, 10); PDF_show_xy($mypdf, "Sample PDF, constructed by PHP in real-time.", 50, 750); PDF_show_xy($mypdf, "Made with the PDF libraries for PHP.", 50, 730); PDF_end_page($mypdf); PDF_close($mypdf); PDF_delete($mypdf); ?>
However, in my .php file, it's including display of table. (and I cant get anything about that in tutorials I've found so far)
How can I do to have the table in pdf?
Thanks in advance. Have a nice day =P
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- how to export mysql database table contents on to a PDF file (MySQL)
- Export PHP Result To Excel 2003 (PHP)
- export mysql database table contents on to a PDF file (PHP)
- PHP table display (PHP)
- PHP and MYSQL table formatting (PHP)
- PDF creation: Wrap text on Table with Fpdf (PHP)
Other Threads in the PHP Forum
- Previous Thread: Database function fail
- Next Thread: php decode / encode
| Thread Tools | Search this Thread |
ajax apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert integration ip java javasciptvalidation javascript joomla keywords limit link login loop mail matching menu mlm multiple mysql oop paypal pdf php problem query radio random recursion recursive regex remote script search server sessions shot sms soap source space sql subscription syntax system table tag tutorial tutorials update upload url validation validator variable video web xml youtube






