Octav's Blog Software, hardware, gadgets, hobbies

1Dec/101

RTF to TXT conversion

Hey dude if you're like me and you like your droid phone and you use it for pretty much everything then I guess you use it also for reading books, but guess what when it comes to rtf files you got yourself a problem because there aren't many ebook readers in the market that let you read rtf files most of them allows you to read pdfs, epub or other ebook formats but not rtf.

I have like gigs of books and I would love to be able to read on my droid, so what I've seen is that all of the readers in the market let you read text files, old plain text files so I cooked a small interface for transforming those rtf files in text files in order to make them droid friendly, many of you will say that text files are not nicely formatted and one can't see rich text or tables or images, well I agree with and this post is not for you and btw I use Moon+ Reader to read these, works so well and loads the pretty fast.

So what exactly does my small utility, it takes a folder where you keep your rtf files and a folder where you want to save the text files and after pressing the GO button it will do the job, granted you are on windows 7 because I didn't test on other SO, sorry but I didn't have time. Here is how it should look like

RTF to text screenshot

I attach here the .net exe and the c# sources, if you want more add yourself, the code is very simple, is based on the rich text control in windows forms and it's ability to save as plain unicode text.

Take exe from here and the source from here (you have a VS.Net 2010 project to work with).

Have fun.