Thank you willus, I think those dots at the corners are ok with me
Your program is amazingly useful for me, and I am glad I can help at least a little - nice to cooperate!
As for Kobo touch: the real resolution is as advertised, 800x600, the bottom widget strip takes 60 px but for the document to fit perfectly (so as not to be affected with vertical stretch/fit and horizontal stretch/fit functions) you have to take away the total of 70px; and dpi seems to be 167 - both by my count and by the counts I found in reviews.
So, the perfect document for Kobo Touch is produced using:
k2pdfopt -w 600 -h 730 -odpi 167 book.pdf
As far as I understand, the code you pasted in the previous post is part of source code, not part of some configuration file that I could use without compiling the program by myself?