/    Sign up×
Community /Pin to ProfileBookmark

PHP Page to PDF on the server

Hi:

I have a PHP page which is the result of a web form being submitted. I want the resulting PHP page to be converted to PDF and emailed to the available email user address, but I want this to happen on the server.

Right now, I can see the PHP page ( HTML & PHP ) . What is the best process to follow to make this hapen automatically.
Any ideas and sample code apreciated.

Thanks

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@hastxJun 26.2009 — How familiar are you with PHP? There are a few PDF Libraries I have used that are available on the net but will require an understanding of OOP to implement them ...I don't know of a real quick function you can use to create PDF.

emailing the pdf once it is created is easy... but here are a few PDF libs...

http://www.fpdf.org/

http://sourceforge.net/projects/pdf-php

A search for PHP PDF generation will turn up several classes you can implement.
Copy linkTweet thisAlerts:
@simoraauthorJun 27.2009 — I think I'll use a modified version of this approach shown here:

http://koivi.com/fill-pdf-form-fields/

Thanks
×

Success!

Help @simora spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...