Cyrus Chan, c04022004@gmail.com
This is a mini project that is inspired by the need to read offline in a kindle. As it can auto re-arrange pdf contend, I did not spend time to refine the look of the out put pdf. If you want to do that, you can change it in HackerNewsDownloader.DownloadThread.run()
.
This program depends on wkhtmltopdf
to convert webpages to pdf.
you can find it here.
The web2pdfPath
in HackerNewsDownloader.java
may have to be changed according to you computer enviroment.
This java program uses Json library from here and here.
After compilation, invoke in the console,
java HackerNewsUI { # of threads for multithreading }
and follow the GUI.
You may have to change
- The
web2pdfPath
inHackerNewsDownloader.java
may have to be changed according to you computer enviroment. - The download function is not working perfectly, some files my be left out, or the progress is stuck at a certain level until timeout.
- The timer function is not thoroughly tested. A more relable way is by the
do ot manually
button.
I’d like to thank the following sources: