Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - PDF Converter
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PDF Converter

 Post Reply Post Reply Page  12>
Author
Pegaso View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 13 February 2003
Location: Switzerland
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pegaso Quote  Post ReplyReply Direct Link To This Post Topic: PDF Converter
    Posted: 07 November 2003 at 9:44am

I'm searching an Online PDF Converter. Why?

Really simple, i'm working on a professional site where you can calculate online offers. My idea is that the user go in the site, fills out the form and the site will automatically create a PDF File whit the offer.

Any good web adress or solution??

Thank's.

P.S.: i'm searching a free service

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 10:36am

i can stop you right there in that you wont find a viable PDF solution thats "free"

as for the standard in PDF converstion, ActivePDF is pretty much it

Contribute to the working anarchy we fondly call the Internet
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 11:45am
not only is it not free, but it's not cheap either...
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 12:02pm

Can't you use

<% response.ContentType ="application/pdf" %>

then write out html?

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 12:37pm
Can't really do that. But if you got a SQL Server available I can give you a Stored Procedure that turns contents of a table into a pdf. Works like a charm and is free.
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 4:35pm
Hey michael I'd like to have that code if you don't mind...

Pegaso I got a VB6 class to make text pdf files, I'm pretty sure I can port it to ASP, if not then I can make it a dll and you can register on the server and use from an asp script, I will give it a shot sometime this weekend, probably Sunday. It only does plain text though...
FeRnAN
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 6:30pm
Ok, I made it an ActiveX DLL (COM component), you gotta install the dll on the server and register it. It only converts a text file to PDF on the server, so you got to use the FileSystemObject to create the text, then convert it to PDF using the component, then delete the txt file using the fso, then allow the user to download it or see it using the Stream object and then delete the pdf with the fso. It's actually not that complicated... Here's how to use the component:

'Create the component object
Set objPDF = Server.CreateObject("PDFbyFernan.MakePDF")

objPDF.SourceFile = "c:\www\text.txt" 'Physical path to the text file (use Server.MapPath to convert the virtual path)
objPDF.TargetFile = "c:\www\file.pdf" 'Physical path to the PDF file we're gonna make.
objPDF.RecordsPerPage = 60 'How many lines per page on the PDF
objPDF.Width = 80 'How many characters per line
objPDF.Font = "Arial" 'What font we want to use on the PDF
objPDF.CreatePDFFile 'Make the pdf file!

'Release object
Set objPDF = Nothing


I could make it a pure ASP class but it's quite a bit of work and I'm not about to that for free :-)...

I've setup a demo, but I put a text file already on the server that only contains the lines "Hello World" so you only get to specify the name for the PDF and all you'll see on it is hello world but it proves that the component works!, here's the demo:
http://lab.uznetworkz.com/text2pdf_component/

and you can download the component here:
http://lab.uznetworkz.com/text2pdf_component/PDFbyFernan.zip

It'll only be available from there for 24 hrs. After that if anyone wants it PM me... I might work on it this weekend and add features like tables etc., and the ability to create the PDF 'on the fly' and send it to the client browser rather than having to go thru all this, but might not release it for free so better get this one while it's available... :-)

Edited by fernan82
FeRnAN
Back to Top
Pegaso View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 13 February 2003
Location: Switzerland
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pegaso Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2003 at 6:33am
Wow Fernan, great thing, I will try to use you script.

For the moment i have found another good solution...RTF Format, it's a nice format, the only problem i have found is that the document protection didn't work when you download the document.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.