|
Note that you dont need to rely on ghostscipt, calibre already contains code to render PDF files (this is how the functionality to view the first 10 pages of a PDF to select the cover is implemented). See the page_images() function in metadata/pdf.py
|