473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Convert a HTML file to TIFF programmatically?

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
Nov 15 '05 #1
5 13106
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

"Dominic" <do****@hotmail.com> wrote in message
news:2b**************************@posting.google.c om...
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

Nov 15 '05 #2
Dominic, here's a list of site which offer free and not free products which
do what you want.

http://www.experts-exchange.com/Web/..._20694278.html

--
Greg Ewing [MVP]
http://www.citidc.com

"Dominic" <do****@hotmail.com> wrote in message
news:2b**************************@posting.google.c om...
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

Nov 15 '05 #3
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#.

"Greg Ewing [MVP]" <gewing@_NO_SPAM_gewing.com> wrote in message news:<OA**************@TK2MSFTNGP12.phx.gbl>...
Dominic, here's a list of site which offer free and not free products which
do what you want.

http://www.experts-exchange.com/Web/..._20694278.html

--
Greg Ewing [MVP]
http://www.citidc.com

"Dominic" <do****@hotmail.com> wrote in message
news:2b**************************@posting.google.c om...
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

Nov 15 '05 #4
Here is what you need
http://www.guangmingsoft.com/htmlsnapshot/help.htm
HTML Snapshot ActiveX Component
HTML Snapshot ActiveX Component uses the internet explorer's
functionality to take (capture) a snapshot of a given URL. It hosts the
web browser control on windows to download webpage and then capture it
as image. It can be easily integrated into applications written in
languages that support ActiveX Compoent such as Visual C++, Visual
Basic, Delphi, C++ Builder, .Net languages and Scripts.

Thanks

Nov 16 '05 #5
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

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dominic | last post by:
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?...
0
by: Nicolas Guilhot | last post by:
Hi all ! I have a multi-page Tiff image file that I want to convert to PDF. To do so I am using iText library. The conversion is working, but the code execution is very different according to...
0
by: David | last post by:
I have a C# application that functions as follows: 1. Log onto a pop3 mail account 2. search for any messages from a given source. 3. Get the attachment from the message. (This attachment will...
0
by: Zhao Sheng | last post by:
http://www.guangmingsoft.com/htmltoimage/help.htm Html To Image Html To Image 2.0 Released! Html To Image help you convert html page from any URL to image or thumbnails easily and quickly. ...
4
by: Pushp | last post by:
Hello friends, Can any body tell me the sample code to convert a Tiff image to a Gif or Jpeg format. The Resolution of picture is a big concern keeping in mind. Hope to get the response...
1
by: Glenn Wilson | last post by:
I have been given a small project and was looking for some help. I need to convert doc file to tif documents, now I can do this by using a printer driver to do the change, but I need to be able to...
1
by: Daniel | last post by:
I have looked everywhere on the web for an answer to this and the only thing I can find is converting the image format when the file is present on the local filesystem. What I want to do is use a...
0
by: Ayman | last post by:
Hi All, I develop an application to send fax using Dialogic card. I have to convert any file need to be sent to tiff file. I can convert any image file to tiff, but I would like to know how to...
0
by: stuinstra35 | last post by:
I need help converting a PixelFormat.Format16bppRgb555 image to a PixelFormat.Format1bppIndexed image in VB.net The images I'm working with are all black and white documents. I create the...
0
by: ashz | last post by:
Hi All, I want to convert any document to tiff file format. Is it possible using dot net. Actually i have a simple button in my form that open a OpenFileDialog control. Using this i get the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.