aspose file tools
The moose likes Java in General and the fly likes Text File to JPG file conversion using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Text File to JPG file conversion using Java" Watch "Text File to JPG file conversion using Java" New topic
Author

Text File to JPG file conversion using Java

Buhari
Greenhorn

Joined: Nov 05, 2007
Posts: 1
Can any body tell me how can we convert a text file to a JPEG file using java.. I want it to be converted into a single 800x600 JPEG image whatever the size of the text file.. moreover there must not be any alignment problems.. i ve tried the PSP image creation, but it does save text as a number of images, which i dont desire.. Moreover I get alignment problems in it.. Thanks in advance for any help/assistance.. It is just a plain text message.. with tab spaces (just a tabular format in PLAIN TEXT-no columns like that of a table).. I must save the shole file as a single JPEG image..

[ November 09, 2007: Message edited by: Hack Java ]
[ November 09, 2007: Message edited by: Buhari ]
David Wheeler
Greenhorn

Joined: Oct 07, 2005
Posts: 6
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
Before I even look at that code... what sort of text file? What sort of image? Do you want an image that shows the text? (In what fornt? How should it be formatted? Is the text in HTML, XML, RTF or some other format?) Or does the text represent an image somehow, e.g. by using Base64 or some other algorithm to encode binary data? There really is no way to answer this without knowing more about the text file.


"I'm not back." - Bill Harding, Twister
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12911
    
    3

"Hack Java", please check your private messages. You can see them by clicking My Private Messages.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3652

"Buhari"

Your name still does not conform to the JavaRanch Naming Policy. Please review the policy and update it appropriately. This is your second warning.

Scott


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Text File to JPG file conversion using Java
 
Similar Threads
How to transfer a bufferedImage Object?
Knowing your streamed Objects
where to put image jar files
What tool to edit server.xml
Casting problem. Image to BufferedImage