Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 24, 2008, 06:32:33 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Create PDFs on the fly  (Read 329 times)
blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« on: May 08, 2008, 10:24:09 AM »

I am new to Lunar Pages and I have two questions.  The applications that can be downloaded through the install applications icon, are they free as part of the host.  My second question is how could I create a .pdf file on the go?  I am new to web programming in general (this is my second website) and I have been trying to figure how to make dynamic pdf's.  I know that I can use Adobe's tools but they are soo expensive.  I was wondering what else other people have been using other than adobe.  (I have a shared hosting plan and that may reduce my options.

Jared Help
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6923



WWW
« Reply #1 on: May 08, 2008, 11:26:29 AM »

Well, do you have to have the PDFs created on the server side?  Was going to suggest that OpenOffice.org does PDF creations pretty well. Smile
Logged

blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #2 on: May 08, 2008, 11:54:49 AM »

I am not sure what my options are.  Basically I need to create pdf reports from dyanmic content from both a database and user input.  I hope that is somewhat helpful?   Happy Happy Joy Joy
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3104



« Reply #3 on: May 08, 2008, 03:38:41 PM »

I'd suggest stepping back for a moment and deciding if PDF is the best format for you. What are you trying to accomplish? Given that PDF is generally a terrible format for online viewing, you may want to think about other formats (such as HTML). PDF is good for a document if its main purpose is to be printed on dead trees. Otherwise, as PDF is oriented towards printed pages, I'd try to avoid it.

Then, do you need to really create these documents on-the-fly, from fast-changing dynamic data on the server, or could they be better built on a PC and uploaded?
Logged

blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #4 on: May 08, 2008, 04:00:02 PM »

there are basically two parts to want I would like to try and make happen.  First off is printing invoices.  The second part is printable reports.  I guess if I could do all of that and make it printable than html would be fine.  If I did printable HTML would that be basically sizing the print window to fit the printer?
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3104



« Reply #5 on: May 08, 2008, 07:40:02 PM »

Since your material is going to end up as ink on paper, PDF may be a good fit (especially if you want to do layout for specific-sized paper, and online display is secondary). One path you should look at is running the PDFLaTeX markup system to generate PDF files. I think I've heard of LaTeX being run on LP servers, but you'd have to check if it's installed already or if you'd have to go to VPS or dedicated (it's C code... I don't know if there are PHP or Perl versions of LaTeX). If you can come out with a plain text flat file (or some other word processor format), there may also be converters (to PDF) that can run on LP. Just keep in mind that interpreted scripts (Perl, PHP) should have no trouble running, while compiled and linked binary programs will be a royal pain to get up and running on a server. Once you have a PDF file and the user downloads it, do you have some mechanism for destroying it so that space isn't wasted? Perhaps a cron job that goes through and deletes every .pdf file more than 24 hours old?

On the other hand, if the material is primarily for online display, with printing secondary, I'd consider HTML+CSS, with a "printer friendly" CSS version for output device "printer" that can fit to specific paper sizes.
Logged

blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #6 on: May 09, 2008, 10:15:41 AM »

I think I should go with the html + css printer friendly version because as I mentioned, I am a noob, and the things that you mentioned may be a little beyond my simple minded capabilities.  I really appreciate your taking the time to respond.   The help is much appreciated.  Thumbs Up
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM