Easy dynamic PDF creation from database and/or user input???

Posted on 2007-09-30
Last Modified: 2010-04-06
I have a couple of websites where I need to create PDF's on-the-fly from either a MySQL database, direct user input or a combination of both.  I see this being done all over the place, and I was wondering if there is anything that makes this easier for a non-scripter like myself?  I use Dreamweaver CS3 and usually use a Unix server platform, although I have access to Windows servers as well.

I need to produced a downloadable coupon for a show with the location information coming either from a list or DB combined with the person's name (input on the site).

I also need to produce a downloadable list of association members based on a database and/or db query.

It would be great if there was an easy plugin or visual tool to make this happen... again I am not a script guru, but if I have to learn step by step I will.
Question by:lsolheim
    LVL 10

    Accepted Solution

    PHP has the ability to create PDF files on-the-fly from a MySQL database, however having had a quick look online, I can't see much in the way of pre-made applications that will do this for you, but there does seem to be a fair few tutorials on PHP with PDF's, but this is really down to how comfortable you are in the way of coding.

    This has an almost never-ending list of ways you can do it, but agian, its all coding im afraid. I will report back if I find a pre-made application.
    LVL 70

    Assisted Solution

    by:Jason C. Levine
    There are two general ways to do this.  You can design a web page that pulls in the dynamic data and then use a script to convert that page to a PDF and push it to the user's browser.  The best free script I've seen to do that is domPDF:

    The second way (Phatzer's way) is use the PDF libraries in PHP to build your document line by line.  You should also look into fpdf ( and ezpdf ( for solutions in this case.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    *Adobe Acrobat 9 was used for this article. Particular steps may vary depending on software versions. 1. Create a framework of your form in Word, leaving space where you’d ultimately like the Adobe fields to appear.  (Note: I use the blank lines …
    This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now