We help IT Professionals succeed at work.

Commercial solution to convert HTML to PDF

540 Views
Last Modified: 2008-02-07
Hello,

We are looking for any product that can take an exceedingly simple PHP-generated web page (text/lists/tables/graphics) and generate a PDF of that page on the server. The product must have the following:

- Work in a LAMP environemt
- Ability to generate custom top/bottom/left/right margins in the PDF file
- Handle graphics and tables, minor CSS styles (font specifications)
- Be somewhat easy to install and use or have pretty good support and documentation
- Be called from another PHP script and be able to open a page with a query string

The idea is that a user will submit some HTML as generated by an fckeditor textarea to a MySQL table.  A script will then put various elements from the table together as HTML and we then need that result to be saved on the server as a PDF.

We have looked at htmlDOC already, but I was not overly impressed with the demo at pdf-o-matic and really not impressed with the documentation.

Any other suggestions are appreciated.  Free is best, but I have secured a budget for this project and am willing to pay for a solution that meets all of the above requirements.
Comment
Watch Question

Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Jeff DarlingDeveloper Analyst
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Author

Commented:
Hi hernst42,

We have just started looking at dompdf...we were unaware of it until just recently.  It looks promising...



Hi jeffld,

That link looks to be a variation on fpdf.  Unfortunately, that won't work because I'd have to spend too much time converting the HTML output from the fckeditor textarea to syntax that fpdf would find acceptable.

Jason
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Author

Commented:
Thanks guys.  

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.