Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
what's the best way to export html|PHP to a PDF?
Old 11-03-2010, 05:45 PM what's the best way to export html|PHP to a PDF?
Novice Talker

Posts: 11
Name: Ed
Location: Gutemala City
Trades: 0
Hey people!

I'm trying to export a 'report' with graphics, colors, a lot of data into a PDF file, I'm using dompdf libraries (http://code.google.com/p/dompdf/wiki...df_via_the_web), and this library works nice with some regular PHP pages, but my issues started when I tried to export all my colorful report.

some of the issue that I have are:
"Deprecated: Function set_magic_quotes_runtime() is deprecated in /opt/lampp/htdocs/PHP-PDF/dompdf-0.5.1/lib/class.pdf.php on line 4332

Deprecated: Function set_magic_quotes_runtime() is deprecated in /opt/lampp/htdocs/PHP-PDF/dompdf-0.5.1/lib/class.pdf.php on line 4348
"

alright, now, what do you guys are using to do this task? exporting to PDF.

Thank you in advance!

Last edited by mckain; 11-03-2010 at 05:47 PM..
mckain is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-03-2010, 05:55 PM Re: what's the best way to export html|PHP to a PDF?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Magic quotes along with the function set_magic_quotes_runtime have been deprecated as of PHP 5.3. Assuming the function is being called with false as the parameter (ie disabling magic quotes) it should be safe to remove them from the script.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 11-04-2010, 10:30 AM Re: what's the best way to export html|PHP to a PDF?
Novice Talker

Posts: 11
Name: Ed
Location: Gutemala City
Trades: 0
I commented with # those lines and these ones:

Deprecated: Function set_magic_quotes_runtime() is deprecated in /opt/lampp/htdocs/PHP-PDF/dompdf-0.5.1/lib/class.pdf.php on line 4672

Deprecated: Function set_magic_quotes_runtime() is deprecated in /opt/lampp/htdocs/PHP-PDF/dompdf-0.5.1/lib/class.pdf.php on line 4677

now, the PDF finally is printed but completely unformatted, I'm gonna try to find another library or tool to convert my reports into PDF files.

Thank u!
mckain is offline
Reply With Quote
View Public Profile
 
Old 11-04-2010, 11:05 AM Re: what's the best way to export html|PHP to a PDF?
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
Look at ezPDF - it's a very simple tool that suits most needs well.
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
Old 11-06-2010, 03:11 PM Re: what's the best way to export html|PHP to a PDF?
Junior Talker

Posts: 1
Name: Carl Bushman
Trades: 0
Have you tried something like DocRaptor.com? It lets you convert html to pdf. They have a free plan, I believe.
BushmanC is offline
Reply With Quote
View Public Profile
 
Old 11-06-2010, 03:19 PM Re: what's the best way to export html|PHP to a PDF?
Experienced Talker

Posts: 27
Trades: 0
You can always google "html to pdf".
__________________

Please login or register to view this content. Registration is FREE
from as low as $10
kineticsem is offline
Reply With Quote
View Public Profile Visit kineticsem's homepage!
 
Reply     « Reply to what's the best way to export html|PHP to a PDF?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17168 seconds with 12 queries