I am a super huge fan of the Amazon Kindle. For any that know me it is one the few devices that does travel everywhere I do whether I am going to use it or not. Still there is a couple of problems with the device. The biggest of which is getting my documents on the device without have to pass them through amazon. Since usually upload whole series of books at the same time it becomes a massive pain to email each pdf…html file one at a time to Amazon then wait for the response so I can download it and copy it onto my device.
The obvious solution to this problem is to use MobiPocket Creator. There is no question that this is a great solution. But again I do multiple files at the same time each time through the program depending on the size of the PDF I have it is about 5 screens and then a lengthy processing delay since MobiPocket does like to extract images from PDFs. Ultimately this is too much time delay. Although you can run the program multiple times on top of itself and do multiple files. It leaves a good bit of garbage from the processing. I gotta admit this is super annoying as well.
My solution is not so far from MobiPocket Creator. A derivative if you will called mobigen. This cute little command line tool does all the big work of MobiPocket Creator as far as outputing a mobi file from a HTML input. So now its all about getting our documents into an HTML file and passing it to mobigen. In most cases getting a file to HTML these days is not that bad. The 3 Most common files I have in my book library are HTML, PDF, and LIT. Of course LIT is a bit of an oddball since it is a Microsoft product that seems to have lost a lot of favor.
To wrap up the story I grabbed AutoIt v3 and built a real dirty file processing interface for the data processors I found to use with my solution which I call the Auto Kindle Converter (Yea I know now the best name ever but….) In reality it works off file extensions. Figures out the file type and location and passes it to the correct command line processor. pdf2html for PDF files, clit for lit files, and mobigen for straight HTML and for the output of these other processors. I think in the end the app is less then 40 lines long but it does great things within the AutoIt runtime.
Here is a quick Tutorial for v0.2.20
Once you install the program you will find it in the start menu.
Your First Screen Looks Like This.
Browse to a select a file and click Open
Next:
A new window opens asking for a destination for the processed file
At this point user input is done. The app will do the rest you will see a progress bar like this
At this point as long as we haven’t hit some kind of random file processing error you file should end up on you Kindle if you selected your Kindle as the destination.
Errors you may encounter.
Document may have Copy Protection and Cannot be Processed
This I admit is a bit of a general error. But what it does tell us is that there was a stop in the middle of the conversion.
In the case of a PDF it could be that the file was Copy Protected
In the case of a HTML file the system is still showing the file as open and cannot move the file. The above error may show like this:
Output Filename may be Incorrect. Before Trying Again Look Here (the location of the installed Temp folder)
In the case of a LIT file this is a known issue with how clit generates a filename for its output file. clit can retrieve the internal title of the document and at times this is different from the filename causing the output file to be lost by the Kindle Converter. This is actually the easiest to resolve. In the programs application folder is a Temp folder. This keeps all the garbage intermediate files from the last processing until you run the application again. So if you get this error when processing a LIT file you can just copy the HTML that was left in the Temp folder to somewhere safe and run the program again on the html file to get the processed output. I am working on a work around for this one but as of v0.2.20 it can be a bit annoying.
I hope you enjoy this application.
Please post any comments about it here. At Sourceforge or on my forum http://forum.deadmessengers.net HERE
















6 comments so far
Hello
Can you please tell me which are the command line parapeters for the executable file “Auto Kindle.exe”?
Iam trying to convert may files once.
Thank you!
February 12th, 2009 at 10:29 am
Well it is Quasi-Command line for the purposes of drag and drop. As of right now it only supports the file to convert being passed to the exe via command line. But if you give me a couple of days I will be glad to create a passthrough for the destination. (to be honest I started a re-write of this app in c# and that version includes full command line support this orig version has been neglected for a while.)
Once done the params will be [input file] [output directory]
the output directory should not have a tailing slash.
If you are working on a batch script that can use this I would love to include it in the project as well.
Thanks,
Paul
February 12th, 2009 at 10:51 am
I have made the appropriate changes to the application and created a new branch that operates from the command line.
Here is the link to the build
http://downloads.sourceforge.net/autokindle/Auto_Kindle_Tools.zip?use_mirror=superb-west&filesize=5090482
No real difference I just have to versions in the archive the new one has command attached to the end of the exe. This one will support 2 arguments as discussed and allow for error output to the console window.
Enjoy
February 12th, 2009 at 6:43 pm
Just got a kindle and this is a life-saver! Thanks!
September 15th, 2009 at 9:10 pm
I’m not technically savvy and I couldn’t get it to work. As a clueless someone, could it be b/c I’m using Windows 7? My start screen doesn’t even match the screen shots above.
November 12th, 2009 at 5:38 pm
Great tool! It works like a charm, but I have one problem: Is it possible to remove the line-breaks from a pdf? The line-breaks are still in the mobi file, so I always get a full line and then a half full line. It’s tough to read.
November 14th, 2009 at 11:40 am
Leave a Comment