This is the GUI version of my Groovy script written in 2009, which convert text file into PDF with Eink reader requirements.
There are numerous software and tools can convert text to PDF, the reason that I want to write one for myself is:
Most software were built before Eink reader, so they didn't meet the special need of reading on Eink reader. Eink reader screen is the most precious asset, so there is need for fine control on page size, margin, line spacing etc.
I want the conversion as simple as possible. With chosen preset of parameters, I only want to click once to do the job.
With some reading on iText, I finished the script in 2 days. It solved my problem.
I tried to share it with other people, but it is not easy to use for regular user without much programming knowledge.
Recently I wrote a GUI for this script with Groovy SwingBuilder and MigLayout, which made the task much simpler.
I don't have time to write detailed instruction for the application in English yet, besides I guess the application don't have much use for English readers, because there are numerous alternative tools.
You can download the source code here, as a reference example of my article of SwingBuilder + MigLayout.
PDF4EInk.zip
lib.zip
https://sites.google.com/site/dracodoc/pdf4eink-1/lib.zip?attredirects=0&d=1
To run the application, you need have JRE and Groovy installed. Then put iText-2.1.5.jar,miglayout-3.7.4-swing.jar in lib.zip to the lib directory under your Groovy installation directory.
Then you can unzip PDF4Eink.zip to any folder. You also need to copy some TrueType fonts to the TTFfonts directory. Then you can run the application with run.bat.
You can change the interface language by click on the English button on the top, then restart the application.
All the source codes are there, with many comments. If you can read Chinese, here is the detailed instruction about the application usage.