Convert a HTML file to TIFF programmatically?

D

Dominic

Hi guys,

In .NET, how can I convert a HTML file to TIFF efficiently?

One possible way is that I can first use word automatation to load the
HTML up and then print it to TIFF. Is that right? However, even if it
is technically feasible, it can take long time to do the conversion,
especially the HTML is complicated.

Is there any other more efficient way? Thanks!

How about converting HTML to JPEG? (The HTML is big, and I'm afraid
that the converted TIFF may be huge....)

Thanks
Dominic
 
S

Sean Chapman

according to a co-worker, heres what u want to do:
make sure the html is either xhtml or xml->friendly html. then use apache
FOP to convert it to whatever. apparently its best at pdfs.. and pdfs are
cooler than tiff/jpg... much cooler.... much much cooler...
hope that helps
 
D

Dominic

Thanks for your answer. I'm afraid that I didn't express my question
clearly. I actually want to do the conversion programmatically in C#.
 
H

htmlsnapshot

Try Html Snapshot Component
http://www.guangmingsoft.net/htmlsnapshot/help.htm
Directly save the web page at a given URL into image in bmp, jpeg,
tiff, gif or png format. i.e. html to image, html to jpg function you
are looking for.
Directly convert html string to images.
Support saving the whole html page to image without scrollbars.
Create thumbnail images from large images.
Get links, title, cookie or html source of a page
Get the html document DOM interface
Make gray or black and white images
Reduce color number in images while keeping better quality.
Examples in VC, Delphi, VB, VB.Net, C#, ASP, ASP.Net, PHP, Perl,
Python, Cold Fusion, VB and Java script as well as Java are provided.
Support JPEG compression level and TIFF compression method selection
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top