So... someone told me that I should create a GUI version of my epub2pdf.sh script, and after some time I bit the bullet and had a quick learning of python and Qt. This is a first working version of the thing. It not only generates PDF files from ePUB (if you have prince installed), but also creates thumbnails for use in the Cybooks (if you have convert installed). I think the interface is quite self-explanatory, at least for someone who knows more or less what the program is meant to do.
I'm sure there are many things that can be improved or added, and I'm open to suggestions. Something I'd like to do but I don't know how is having the output from prince redirected to some pop-up window (currently, the whole GUI just freezes while it runs), I'd appreciate any help with this.
Umm... as I said, it's a python script with PyQt4, so I guess both of them are needed. I have them in my linux box, and it works here, but I know nothing about MacOS or Windows.
Command line version
Calibre plugin version
EDIT (v 1.1):
Fixed detection of Book CSS
Included default CSS
Added tab to view CSS files in the ePUB
The generated PDF now includes correct title and author (or so I hope)
EDIT (v 1.2):
Fixed some issues in Windows
Fixed PDF metadata
Show only image files for possible covers
Show also HTML files in CSS viewer
EDIT (v 1.3):
Decode percent-encoded filenames
Fixed file path computation for non-UNIX filesystems (again)
Fixed metadata setting (truncate modified file on writing)
Fixed treatment of empty creators
EDIT (v 1.4):
There's apparently a bug in Prince that means links with directory separator do not work correctly in Windows, unless the command line is passed with unix/http-style paths. I hope it works fine with this version.