Print Page | Close Window

PDF Converter

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7078
Printed Date: 31 March 2026 at 1:54pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: PDF Converter
Posted By: Pegaso
Subject: PDF Converter
Date 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



-------------



Replies:
Posted By: MorningZ
Date 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


Posted By: KCWebMonkey
Date Posted: 07 November 2003 at 11:45am
not only is it not free, but it's not cheap either...


Posted By: Mart
Date Posted: 07 November 2003 at 12:02pm

Can't you use

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

then write out html?



Posted By: michael
Date 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.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: fernan82
Date 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
http://www.danasoft.com/">


Posted By: fernan82
Date 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/ - http://lab.uznetworkz.com/text2pdf_component/

and you can download the component here:
http://lab.uznetworkz.com/text2pdf_component/PDFbyFernan.zip - 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... :-)

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Pegaso
Date 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.

-------------


Posted By: gupta_ji
Date Posted: 14 November 2003 at 1:10pm
The PDF convertor is not free.

-------------
http://www.sgrj.com" rel="nofollow - chartered accountants India , http://www.delhiprofessionals.com" rel="nofollow - accounting Outsourcing ISO Certification



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net