Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Can I convert html to pdf dynamically


Message #1 by "Raymond Dalton" <rdalton@c...> on Fri, 20 Sep 2002 21:01:37
Hi,

I have an application that I am building that stores a person's bio 
information into a database.  That information is then pulled from the 
database to generate the individuals bio dynamically on their web site.  
It is all very simple, as the bio information is just stored in a memo 
field as html.  The text of the bio will have html tags in it like list 
tags, image tags, bold and italics tags, etc.  This all works well for the 
web site, but what we would like to do is to take this same information 
and output the bio as a pdf file for other purposes.  I have found 
components and tools for generating a pdf file using text, but I can't 
seem to find one that will allow me to take html tagged text and output it 
in pdf format or convert an html page to pdf dynamically.

Does anyone know of a way to dynamically create a pdf file using text that 
contains html, or from an html page, or in any way that converts html to 
appropriate text in a pdf file?

for example if I had a page that had the text <b>name</b> - <i>title</i>
I would like it to show up as bold and italic in a pdf file.

Thanks,

Raymond 
Message #2 by bbennett@s... on Sat, 21 Sep 2002 12:57:03
Hi Raymond,
there are a couple of commercially available components that will convert 
HTML to pdf on-the-fly:

http://www.activepdf.com/en/start.asp
http://www.mitdata.com/AspEasy/index_pdf.htm

What I want to know is whether there is anyway to convert XML to pdf on-
the-fly in an MS environment. You can do this on an Apache Server using 
XSL:FO with Cocoon (http://xml.apache.org/cocoon/index.html)but I can't 
find the equivalent for IIS, suggestions anyone??

bdb

> Hi,

> I have an application that I am building that stores a person's bio 
i> nformation into a database.  That information is then pulled from the 
d> atabase to generate the individuals bio dynamically on their web 
site.  
I> t is all very simple, as the bio information is just stored in a memo 
f> ield as html.  The text of the bio will have html tags in it like list 
t> ags, image tags, bold and italics tags, etc.  This all works well for 
the 
w> eb site, but what we would like to do is to take this same information 
a> nd output the bio as a pdf file for other purposes.  I have found 
c> omponents and tools for generating a pdf file using text, but I can't 
s> eem to find one that will allow me to take html tagged text and output 
it 
i> n pdf format or convert an html page to pdf dynamically.

> Does anyone know of a way to dynamically create a pdf file using text 
that 
c> ontains html, or from an html page, or in any way that converts html 
to 
a> ppropriate text in a pdf file?

> for example if I had a page that had the text <b>name</b> - <i>title</i>
I>  would like it to show up as bold and italic in a pdf file.

> Thanks,

> Raymond 
Message #3 by Greg Griffiths <greg2@s...> on Sun, 22 Sep 2002 14:24:39 +0100
yes, check out :

http://www.google.com/search?sourceid=navclient&q=%22XML+to+PDF%22

At 12:57 21/09/02 +0000, you wrote:
>Hi Raymond,
>there are a couple of commercially available components that will convert
>HTML to pdf on-the-fly:
>
>http://www.activepdf.com/en/start.asp
>http://www.mitdata.com/AspEasy/index_pdf.htm
>
>What I want to know is whether there is anyway to convert XML to pdf on-
>the-fly in an MS environment. You can do this on an Apache Server using
>XSL:FO with Cocoon (http://xml.apache.org/cocoon/index.html)but I can't
>find the equivalent for IIS, suggestions anyone??
>
>bdb
>
> > Hi,
>
> > I have an application that I am building that stores a person's bio
>i> nformation into a database.  That information is then pulled from the
>d> atabase to generate the individuals bio dynamically on their web
>site.
>I> t is all very simple, as the bio information is just stored in a memo
>f> ield as html.  The text of the bio will have html tags in it like list
>t> ags, image tags, bold and italics tags, etc.  This all works well for
>the
>w> eb site, but what we would like to do is to take this same information
>a> nd output the bio as a pdf file for other purposes.  I have found
>c> omponents and tools for generating a pdf file using text, but I can't
>s> eem to find one that will allow me to take html tagged text and output
>it
>i> n pdf format or convert an html page to pdf dynamically.
>
> > Does anyone know of a way to dynamically create a pdf file using text
>that
>c> ontains html, or from an html page, or in any way that converts html
>to
>a> ppropriate text in a pdf file?
>
> > for example if I had a page that had the text <b>name</b> - <i>title</i>
>I>  would like it to show up as bold and italic in a pdf file.
>
> > Thanks,
>
> > Raymond
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.


Message #4 by bbennett@s... on Mon, 23 Sep 2002 09:29:37
Greg,
I agree, no problem with Apache, I'm looking for an IIS solution.
bdb


> yes, check out :

http://www.google.com/search?sourceid=navclient&q=%22XML+to+PDF%22

At 12:57 21/09/02 +0000, you wrote:
>Hi Raymond,
>there are a couple of commercially available components that will convert
>HTML to pdf on-the-fly:
>
>http://www.activepdf.com/en/start.asp
>http://www.mitdata.com/AspEasy/index_pdf.htm
>
>What I want to know is whether there is anyway to convert XML to pdf on-
>the-fly in an MS environment. You can do this on an Apache Server using
>XSL:FO with Cocoon (http://xml.apache.org/cocoon/index.html)but I can't
>find the equivalent for IIS, suggestions anyone??
>
>bdb
>
> > Hi,
>
> > I have an application that I am building that stores a person's bio
>i> nformation into a database.  That information is then pulled from the
>d> atabase to generate the individuals bio dynamically on their web
>site.
>I> t is all very simple, as the bio information is just stored in a memo
>f> ield as html.  The text of the bio will have html tags in it like list
>t> ags, image tags, bold and italics tags, etc.  This all works well for
>the
>w> eb site, but what we would like to do is to take this same information
>a> nd output the bio as a pdf file for other purposes.  I have found
>c> omponents and tools for generating a pdf file using text, but I can't
>s> eem to find one that will allow me to take html tagged text and output
>it
>i> n pdf format or convert an html page to pdf dynamically.
>
> > Does anyone know of a way to dynamically create a pdf file using text
>that
>c> ontains html, or from an html page, or in any way that converts html
>to
>a> ppropriate text in a pdf file?
>
> > for example if I had a page that had the text <b>name</b> - 
<i>title</i>
>I>  would like it to show up as bold and italic in a pdf file.
>
> > Thanks,
>
> > Raymond
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.


Message #5 by "Raymond Dalton" <rdalton@c...> on Tue, 24 Sep 2002 15:15:32
> http://www.activepdf.com/en/start.asp
> http://www.mitdata.com/AspEasy/index_pdf.htm

Thanks for the help.  the mitdata tool is cheap, easy to install, and does 
exactly what I needed.  I had it up and running in 10 minutes.  Thanks 
again,

Raymond
Message #6 by Simon Hargreaves <simon.hargreaves@r...> on Tue, 24 Sep 2002 16:35:04 +0100
Oh my gawd, I was hoping for a bird at the very least ! if Kev wants some
botty action, you have to take care of it yerself !

S

-----Original Message-----
From: Raymond Dalton [mailto:rdalton@c...]
Sent: 24 September 2002 16:16
To: aspx_beginners
Subject: [aspx_beginners] Re: Can I convert html to pdf dynamically


> http://www.activepdf.com/en/start.asp
> http://www.mitdata.com/AspEasy/index_pdf.htm

Thanks for the help.  the mitdata tool is cheap, easy to install, and does 
exactly what I needed.  I had it up and running in 10 minutes.  Thanks 
again,

Raymond
---
Beginning ASP.NET Databases using VB.NET
http://www.wrox.com/ACON11.asp?ISBN=1861006195

Beginning ASP.NET Databases using C#
http://www.wrox.com/ACON11.asp?ISBN=1861007418

These books look at how we can create data-centric ASP.NET 
applications. Requiring some basic knowledge of ASP.NET, 
Access and SQL the authors guide you through the process 
of connecting and consuming information in a variety of 
ways. They are packed full of excellent illustrative code 
examples, demonstrating important fundamental principles.

  Return to Index