Submit Your Article Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read


Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-29-2005, 11:59 PM
Orion's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 705
Orion RepRank 4Orion RepRank 4Orion RepRank 4Orion RepRank 4
Default HTML to PDF

Hey all,

We have a client's site that has only 5 pages. They want the print button on each page to produce a PDF page.

As they update content weekly on the site theyselves we need to have a dynamic conversion script.

I've set up Ghostscript on the server but we're having problems with the html2ps (HTML to PostScript) for some reason it's not working and gives us an error message.

Anyone found a way to create a script (or an existing script) (php preferred) that will convert HTML to PDF on the fly at the press of a button?

Thank you in advance for any assistance!
Reply With Quote
  #2 (permalink)  
Old 01-01-2006, 02:13 AM
Easywebdev's Avatar
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 310
Easywebdev RepRank 1
Default

Not sure what you are using with html2ps, I havent done anything with that in an age but I did set up a php version and it was a huge resource hog. I had to increase the php memory usage to 64mb, if its the php version you using you might want to look at that.

I came across a php class a while back (I dont have it nor can I find it again) but it was for divs (didnt render tables at all) but made a good job of fonts, widths/borders and images.

If I can find it again I'll pm you.
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
"The secret to creativity is knowing how to hide your sources" - Albert Einstein.
Reply With Quote
  #3 (permalink)  
Old 01-01-2006, 08:25 AM
WebProWorld Veteran
 
Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

This might help Creating PDF Files in PHP
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:17 AM.



Search Engine Optimization by vBSEO 3.3.0