|
Auto-Creating PDF Files
Client & Server Side Scripting
 |

06-12-2005, 03:49 AM
|
|
Senior Member
|
|
Join Date: May 2005
Location: Indore, India
Posts: 185
|
|
Auto-Creating PDF Files
Hello friends
Does anyone know how to create a link which automatically outputs a PDF file for the user to view/print?
Please give some solutions.
Thanks
Reguards
Nikhil
|

06-12-2005, 07:13 PM
|
 |
Site Admin
|
|
Join Date: Jun 2004
Posts: 1,200
|
|
hi nikhil,
There is lot's of open source on the net to create the pdf on the fly,
PHP also provide the pdf creation with PDFlib, below is a small sample to create pdf file
PHP Code:
<?php $pdf = pdf_new(); pdf_open_file($pdf, "test.pdf"); pdf_set_info($pdf, "Author", "Uwe Steinmann"); pdf_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0"); pdf_set_info($pdf, "Creator", "See Author"); pdf_set_info($pdf, "Subject", "Testing"); pdf_begin_page($pdf, 595, 842); pdf_add_outline($pdf, "Page 1"); $font = pdf_findfont($pdf, "Times New Roman", "winansi", 1); pdf_setfont($pdf, $font, 10); pdf_set_value($pdf, "textrendering", 1); pdf_show_xy($pdf, "Times Roman outlined", 50, 750); pdf_moveto($pdf, 50, 740); pdf_lineto($pdf, 330, 740); pdf_stroke($pdf); pdf_end_page($pdf); pdf_close($pdf); pdf_delete($pdf); echo "<A HREF=getpdf.php>finished</A>"; ?>
here is some class for pdf creation
http://sourceforge.net/project/showf...group_id=45168
http://www.rustyparts.com/pdf.php
may be it will help you
Regards
Jitender
|

06-13-2005, 02:17 PM
|
|
Senior Member
|
|
Join Date: May 2005
Location: Indore, India
Posts: 185
|
|
Hi Jitender,
I have readed the code you have sen and trying hard to get these thing solved, Thanks for the help. I have sended you a mail about payout when it would be done.
Thanks
Reguards
Nikhil
|

07-01-2005, 09:45 AM
|
 |
Site Admin
|
|
Join Date: Jun 2004
Posts: 1,200
|
|
hi there,
thanks for sending mail, your payment send already throu paypal.
Regards
jitender
|

07-11-2005, 01:55 AM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 30
|
|
Does any know that by creating .PDF files on the fly like this increase server load?
|

07-11-2005, 06:35 AM
|
 |
Site Admin
|
|
Join Date: Jun 2004
Posts: 1,200
|
|
Realy i don't know about the server load, it realy increase the load on server, but lots of site used this type of method like hotscripts provide the pfd on the fly.
Regards
Jitender
|

07-12-2005, 03:10 PM
|
|
Moderator
|
|
Join Date: May 2005
Posts: 139
|
|
i also don't about it, if you need to create the pdf on the fly, you need a very good server for that !
ethic
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 10:32 PM.
|
|