View Single Post
Old 12-22-2013, 06:48 AM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Converting to PDF with Prince

I am considering porting my Prince conversion utility to a calibre plugin. My problem is I'm very much a python (and calibre) newbie, so this will not be a trivial work for me.

I've had a look at the plugin documentation, but there are some details about what I would need that are not available. For example, how can I obtain a list of the filenames in a book and in the spine? And is there some precooked solution to have the files in a named temporary location so they can be fed to Prince?

My original code is actually very simple: just uncompress an epub, add some custom CSS files and issue a command for Prince containing all filenames from the spine.

Another question is whether this should be a "general" plugin or an "output" plugin, given that it is using an external non-free tool and it would replace the already existing PDF conversion.
Jellby is offline   Reply With Quote