View Single Post
Old 04-23-2022, 06:16 AM   #10
cgrapski
Enthusiast
cgrapski began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Dec 2016
Device: Kindle
I too have the same interest. I asked if this could be added as a feature. But Kovid's concern is there is no metadata for cover in a PDF file - so no way to check if it is duplicating the existing cover.

To me the issue is not one of batch conversion - but of amending one file at a time - when I know the cover is not the proper cover - and I have the proper cover in Calibre's database.

But the Polish Book option WOULD DO IT - if it COULD DO IT for a PDF file.

I wonder if it would be possible for that plug-in to be updated - to specifically have an option that handles PDF file covers - to add the Calibre jpg for that file as the first page of the PDF. The plug-in - as you point out - does that but only for the epub family, not for PDFs which it doesn't currently handle.

But maybe it can be tweaked to add this functionality for PDFs - even though it is not necessarily going to add all the plugin's functionality for PDFs - just the add cover. It seems to me (although I am not a programmer) that this would not be too difficult - as you can add a page to a PDF from outside of Acrobat (and add it in position as first page). And you can import a jpg or convert a jpg into a page of a PDF file.

I just wouldn't know how to write the script.
cgrapski is offline   Reply With Quote