Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Generating a PDF File

This is a discussion on "Generating a PDF File" within the Web Page Design section. This forum, and the thread "Generating a PDF File are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 27th, 2006, 21:24
Junior Member
Join Date: Jun 2006
Location: CA
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Generating a PDF File

Hey ya'll. Just registered to the forums, but I suppose that I'll be using them quite often as I've been given the "opportunity" of revamping my company's website. Granted, it's a small company (3 people), but I have little previous web-design experience, so hopefully the questions I ask aren't too mundane.

Here's my first one. I want to enable the employees to have a web-based work request form generator. I figure a simple form will do the trick on the visual front, however what I'd really like to do is be able to take the information they enter, and generate it into a detailed PDF file, what with the company's logo, information, etc. We already have work request templates, however I would like for this form to simply "fill in the blanks" once they hit the generate button.

Basically, I just wanted some basic advice as to how I could go about doing this, or possibly, check to see if anyone can point me into the right direction so I can look it up myself. Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jun 27th, 2006, 21:38
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

Server side language such as PHP or ASP. When you choose one (ASP for Windows, PHP for Linux) search for generating PDF files in that specific language.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 27th, 2006, 21:42
Junior Member
Join Date: Jun 2006
Location: CA
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

Good stuff! Thanks for the quick reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 27th, 2006, 23:23
Junior Member
Join Date: Jun 2006
Location: CA
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

Sorry to post twice, but here's a follow-up question I've got, and I decided I shouldn't create another new topic for it.

When using variables in PHP, where is that variable stored? Is it kept within the PHP file, server-side or is it stored client-side, say, in the user's browser? Stupid question, I'm sure. But I want to know if the user would be able to cross several pages, and those variable values are still going to exist, basically until they're overwritten?

Hope it makes sense, anyways.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 28th, 2006, 00:27
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

They are stored only at the time the script executes. If you wish to use a variable over multiple pages you have a few choices.

Global Variable
Store the variable in a cookie
Store the variable in a session
Include the variable via an outside source

Theres prob a few more aswell which i can think of at this moment in time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 28th, 2006, 00:32
Junior Member
Join Date: Jun 2006
Location: CA
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

Awesome, thanks again, sypher.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jun 28th, 2006, 00:35
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

O ye i forgot the obvious ones.

You can also store data over multiple pages by using the $_POST['data'] function or the $_GET['data']

To do this you have to store the variable information in a hidden form (not good for secure data) or for the get method you have to store the information via the url.
Thats why on sites you see index.php?userid=4&ls=xljus etc etc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jun 28th, 2006, 00:38
Junior Member
Join Date: Jun 2006
Location: CA
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

Ah, cool. I've used both those functions several times now, as I've got a form that submits the entered info to an email, and also a login page/members section that were both created using PHP/MySQL.

Good stuff, I should be able to get the PDF generator up-and-running, since I've got enough information about it. Thanks a ton for the help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Aug 22nd, 2006, 07:35
New Member
Join Date: Aug 2005
Location: Bosnia-Herzegovina
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

Hey, u said u found ton of info on generating PDF files... could u post the sources. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Aug 22nd, 2006, 13:12
Junior Member
Join Date: Jun 2006
Location: CA
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Generating a PDF File

Unfortunately I don't have the links straight off-hand, but when I get a chance I'll see if I can get them again. The biggest thing I found was a server-side extention called PDF-Lib, which made it very, very easy to generate PDF files through PHP coding, however I go through a webhost so I wasn't able to use PDF-Lib. I ended up going another route with what I needed for this, so soon after I found this information, I didn't need it anymore. I'll see if I can scrounge something up later tonight or tomorrow, but for now you can probably do a quick Google search on PDF-Lib and find lots of info.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
generating, pdf, file

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating a CSS Template from HTML dhochee Web Page Design 2 Apr 3rd, 2007 19:06
Generating automatic emails DennisK PHP Forum 10 Nov 28th, 2006 12:38
Creating a log file (text file) and an XML file using XSL kdelacruz Other Programming Languages 1 Nov 4th, 2006 22:12
Generating ID or Session Problem? Options chlad Classic ASP 2 Aug 21st, 2006 12:47
How make Word file same as html file in ASP humair Classic ASP 5 Sep 24th, 2003 15:35


All times are GMT. The time now is 16:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8