| | |
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 |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary body broken cakephp checkbox class cms code cron curl database date date/time directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link list login loop mail menu mlm mod_rewrite msqli_multi_query multiple mycodeisbad mysql oop parse paypal pdf php problem query radio random recursion regex remote script search send seo server sessions sms soap source space sql static structure syntax system table tutorial update upload url validation validator variable video web webdesign wordpress xml youtube






