Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
How to convert an non image file into an image file
Posted 14-Jan-13 21:43pm
Sergey Alexandrovich Kryukov at 15-Jan-13 2:49am
This question makes no sense at all. "Non-image file" is not a definition of anything certain. This is the same as "how to convert anything at all to an image file". There is no "convert" which could possibly be defined.
Zoltán Zörgő at 15-Jan-13 2:50am
Convert a mp3 to a png for example? Are you serious?
fakeer muhammed at 15-Jan-13 3:55am
i need to convert all files into Image files ..........That is Excel and PDF
fakeer muhammed at 16-Jan-13 2:00am
i didnt understand and i need to do programatically and i dont want to print it... I just want to show

fakeer muhammed at 16-Jan-13 2:16am
i think u misunderstood............ I need to convert Excel and PDF to image Files
fakeer muhammed at 16-Jan-13 23:31pm
Mo`9hee . i didnt find any solution
fakeer muhammed at 20-Jan-13 23:23pm
hi Lina99... i have stored the document in DataBase in Bytes .Now i want to convert bytes into File Format.......
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

The process of converting document files (like text, excel..etc) is called rasterization. However, this will not work on all file types (for example audio).
In my application I used leadtools to load document files (text, excel, doc and pdf) to an image then draw some annotations on it then save the result as jpeg images.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

All files = excel and PDf... interesting.
1) Install PdfCreator[^] PDF printer
2) Set up this printer to print to image instead of pdf. You can select several image formats.
2) Using interop and/or verbs print your documents to this printer
There you have them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 645
1 Maciej Los 225
2 Abhinav S 171
3 Richard Deeming 160
4 Suvendu Shekhar Giri 159
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 9,135
2 Peter Leow 5,042
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,581

Advertise | Privacy | Mobile
Web02 | 2.8.150327.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100