Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,235 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,255 people online right now. Registration is fast and FREE... Join Now!




php generating pdfs

 
Reply to this topicStart new topic

php generating pdfs, php generating pdfs

jamessy
11 Oct, 2008 - 06:07 AM
Post #1

New D.I.C Head
*

Joined: 15 Apr, 2008
Posts: 22

Hi all , is it possible to create a pdf or pdfs dynamicly so that what ever the user can see on a page(from a database) can be built in to a downloadable pdf?Any help would be grateful .
User is offlineProfile CardPM
+Quote Post

Hary
RE: Php Generating Pdfs
11 Oct, 2008 - 06:13 AM
Post #2

D.I.C Head
**

Joined: 23 Sep, 2008
Posts: 205



Thanked: 15 times
My Contributions
Yes: http://www.fpdf.org/. You can create a handler for every page that displays it in pdf instad of html.

This post has been edited by Hary: 11 Oct, 2008 - 06:14 AM
User is offlineProfile CardPM
+Quote Post

CTphpnwb
RE: Php Generating Pdfs
11 Oct, 2008 - 12:15 PM
Post #3

D.I.C Regular
***

Joined: 8 Aug, 2008
Posts: 374



Thanked: 22 times
My Contributions
While you can display a pdf instead of html, please don't! Displaying a pdf in a browser is slow, and it wastes screen space with yet another toolbar. Create the pdf and allow the user to download it and then view outside of the browser.
User is offlineProfile CardPM
+Quote Post

jamessy
RE: Php Generating Pdfs
11 Oct, 2008 - 12:24 PM
Post #4

New D.I.C Head
*

Joined: 15 Apr, 2008
Posts: 22

QUOTE(CTphpnwb @ 11 Oct, 2008 - 01:15 PM) *

While you can display a pdf instead of html, please don't! Displaying a pdf in a browser is slow, and it wastes screen space with yet another toolbar. Create the pdf and allow the user to download it and then view outside of the browser.


Yeah thanks thats what i was planning to do , the last link i was sent generates pdfs from a html page but i need to generate from a database is that possible or am i just being a little slow
User is offlineProfile CardPM
+Quote Post

engale
RE: Php Generating Pdfs
11 Oct, 2008 - 08:01 PM
Post #5

D.I.C Addict
Group Icon

Joined: 30 Sep, 2008
Posts: 549



Thanked: 2 times
Dream Kudos: 50
My Contributions
can't you read the db out via php to html then convert?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:28AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month