Solved

Converting html to .tif image?

Posted on 2004-08-09
18
371 Views
Last Modified: 2013-11-19
Hi all,
I want to convert  ".html" ot ".txt" file to ".tif" image. Do you know any algorithms or tools or something else that can help me?
Thanks in advance!
0
Comment
Question by:Valeri
  • 4
  • 3
  • 3
  • +4
18 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 11753462
HTML to TIF? TXT to TIF?? TIF is an image format....
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11753479
You might want to screen-scrape your monitor and then store it into an image-file ;-)
0
 
LVL 37

Expert Comment

by:zzynx
ID: 11753504
HTML is the format a website is written in.
TIF is an image format.
Don't see how you could ever convert one to the other?
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 14

Expert Comment

by:Tommy Braas
ID: 11753775
The easiest way would be to use the html editor toolkit and draw the page on a java.awt.Image and then use an ImageIO TIFF provider to write that image out to a tiff file. I am not aware of any free TIFF providers, but there are a few commercial ones available.
0
 
LVL 7

Expert Comment

by:dttri
ID: 11753998
 Hello,
  You can capture your screen (eg, press "Print Screen" or use tools from software companies). Then paste it into a graphics editor and save as tif file.

  Tri
0
 
LVL 92

Expert Comment

by:objects
ID: 11758631
Along the same lines as orangehead911's suggestion, try using JEditorPane to display your html and paint it's contents to a blank image.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11759758
>> You can capture your screen (eg, press "Print Screen" or use tools from software companies). Then paste it into a graphics editor and save as tif file

Wonderful suggestion. Where does Java come into it ;-) ?
0
 
LVL 16

Author Comment

by:Valeri
ID: 11759937
> HTML to TIF? TXT to TIF?? TIF is an image format....
Although the question is short it is not easy to be solved. I know that! :-)
My first thought was like orangehead911 and objects suggestions.
Yes, any free TIFF providers is exactly what I'm looking for! This engine must work at the server side, so I don't think that including html editor toolkit is the best solution, but as I can see it is the only one?!?!
Could you please give me more information about how to export this content to the tiff file? Because I have never used any image providers.
Thanks in advance!
0
 
LVL 92

Expert Comment

by:objects
ID: 11760032
0
 
LVL 16

Author Comment

by:Valeri
ID: 11760417
Actually I need a special kind of tiff /as I understood a minutes ago/, and I have a tool that generates exactly this kind of tiff from postscript. So, do you know any approach how to generate postscript from html file?
Thanks in advance!
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 11764100
Hmm, if you could automate it, you should be able to utilize a post script printer drivers and print to a file, which you could then feed to the PS->TIFF renderer. I haven't done it myself, but it should be possible. Otherwise, you could generate the PS yourself. PS is a programming language. You could try printing out a page using a PS driver, and open the file in a text editor and see how it works. It is a simple language and you should be able to solve the problem like that fairly easily, especially since your dealing with text.
0
 
LVL 16

Author Comment

by:Valeri
ID: 11910408
I found the solution by myself.

1.  html->pdf by parsing the html file and writing to the pdf file
2.  and after that converting the pdf file to tiff image by using Ghostscript!

That's the solution!
So...I deserve the points! :-)
0
 
LVL 92

Expert Comment

by:objects
ID: 11910417
they're all yours :)
0
 
LVL 7

Expert Comment

by:dttri
ID: 11914585
 It's also helpful to me, thanks Valeri.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11928348
Request for a PAQ-Refund.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12184364
Question answered by asker or dialog valuable.
Closed, 125 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse argument 14 60
web services creation SOAP vs REST 5 38
more than one jdk and one jre 1 41
How to execute a Python program and gather return output in Java 2 26
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question