Connecting Tech Pros Worldwide Help | Site Map

converting txt to pdf

middletree
Guest
 
Posts: n/a
#1: Jul 19 '05
A site I am building will have a text link which will bring up this page in
a new browser:
http://www.crgm06.com/aval.txt

It's a list of available loads (for a company that finds trucks and drivers
for loads to be delivered). It gets updated constantly, I think every
fifteen minutes or so. The site I am building is going to have a link which
will bring up the aforementioned txt page, but I am being asked to convert
it to PDF before displaying it.

The page above is not on the same domain or even the same company as the
site I am building. It's being fed from a Unix database, but I will have no
access to that db. My site is going to be classic ASP on Windows 20000 or
2003 servers. I will have access to either Access or SQL Server db if I need
them. However, I have no reason to think I will need a db for any other
parts of the site.

I don't think this part that I am asking about will ned a db either, but am
trying to provide all the info in my post that I can.

My question is, is there a way to take some data in a text file, and convert
it to PDF on the fly and displaying that for the user?

I went to http://www.aspfaq.com/show.asp?id=2207 but didn't see that any of
the applications/components there would help any.


Bullschmidt
Guest
 
Posts: n/a
#2: Jul 19 '05

re: converting txt to pdf


Hopefully these will give you some ideas:

Using Microsoft's XMLHTTP Object to Get Data From Other Web Pages by
Richard Lowe - 11/1/2000
http://www.4guysfromrolla.com/webtech/110100-1.shtml
"Retrieve data from other web sites."

How do I read the contents of a remote web page? - 5/2/2001
http://www.aspfaq.com/faq/faqShow.asp?fid=119

How do I generate PDF files from ASP? - 11/1/2001
http://www.aspfaq.com/show.asp?id=2207

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
middletree
Guest
 
Posts: n/a
#3: Jul 19 '05

re: converting txt to pdf


I had already been through the 2207 article, but I think the other two will
be helpful. Thanks very much.


"Bullschmidt" <paul@bullschmidt.com-nospam> wrote in message
news:uMmapoeZEHA.4092@TK2MSFTNGP11.phx.gbl...[color=blue]
> Hopefully these will give you some ideas:
>
> Using Microsoft's XMLHTTP Object to Get Data From Other Web Pages by
> Richard Lowe - 11/1/2000
> http://www.4guysfromrolla.com/webtech/110100-1.shtml
> "Retrieve data from other web sites."
>
> How do I read the contents of a remote web page? - 5/2/2001
> http://www.aspfaq.com/faq/faqShow.asp?fid=119
>
> How do I generate PDF files from ASP? - 11/1/2001
> http://www.aspfaq.com/show.asp?id=2207
>
> Best regards,
> J. Paul Schmidt, Freelance ASP Web Designer
> http://www.Bullschmidt.com
> ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
>
>
> *** Sent via Devdex http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


ChrisRath
Guest
 
Posts: n/a
#4: Jul 19 '05

re: converting txt to pdf


>he site I am building is going to have a link which[color=blue]
>will bring up the aforementioned txt page, but I am being asked to convert
>it to PDF before displaying it.[/color]

I've written ASP to output PDF without the use of third party libraries.
Unfortunately I'm not free to post the vbscript class. About the only thing I
can provide is some Python that does a hello world type thing at:

http://www.angelfire.com/tx4/cus/notes/pypdf.html

Unless you want to get serious about figuring out the pdf format, I'd probably
suggest using a third party library.
Closed Thread


Similar ASP / Active Server Pages bytes