Quote:
Originally Posted by CaptainLexington
What
This plugin inserts your Calibre cover as the first page of the book's PDF.
Why
Most ereader software uses the first page of the PDF as the de facto cover. Many PDFs, such as public domain books from Internet Archive or Google Books, have first pages that are poorly suited for that purpose.
How
It uses pypdf to insert your cover file, so pypdf is a bundled dependency. It also adds a flag to the PDF metadata, so if you change the cover later, it replaces the first page instead of inserting another one.
Where
Download the plugin below. Contribute on GitHub. There is also a more detailed readme there.
When
As of 2024.02.05, the current version is 0.1.0, an alpha release. This is also my first Calibre plugin. Use with caution.
|
I am having issues to use your plugin, every time I get an error
Code:
calibre, version 7.9.0
ERROR: Cannot open file or folder as it is in use: <p>Could not open the file: "C:\Users\JRPRDesk\AppData\Local\Temp\calibre_ipvd90vl\eyz0d5by.pdf". It is already opened in the following programs:<div>The main calibre program: C:\Program Files\Calibre\calibre.exe
calibre 7.9 embedded-python: True
Windows-10-10.0.26200-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.26200')
Python 3.11.5
Windows: ('10', '10.0.26200', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre\calibre.exe
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 33, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (2, 33, 0) && Barnes & Noble (1, 5, 8) && Comicvine (0, 14, 2) && Comments Cleaner (1, 19, 2) && Count Pages (1, 15, 2) && Embed Comic Metadata (1, 6, 7) && Find Duplicates (1, 10, 10) && Goodreads (1, 8, 5) && Goodreads More Tags (1, 2, 1, 2) && KFX metadata reader (from KFX Input) (2, 33, 0) && From KFX (2, 33, 0) && KFX Input (2, 33, 0) && Set KFX metadata (from KFX Output) (2, 19, 0) && KFX Output (2, 19, 0) && KindleUnpack - The Plugin (0, 84, 0) && Kobo Metadata (1, 13, 1) && Manage Series (1, 5, 4) && Obok DeDRM (10, 0, 0) && PDF Cover (0, 1, 0) && PDFtoCBZ (4, 0, 0) && Quality Check (1, 14, 7)
Traceback (most recent call last):
File "calibre_plugins.pdf_cover.action", line 70, in insert_covers
File "pathlib.py", line 1147, in unlink
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\JRPRDesk\\AppData\\Local\\Temp\\calibre_ipvd90vl\\eyz0d5by.pdf'
I tried the latest version of calibre, as well as older ones, closer to the release of your plugin, but no luck.
Thanks for all your help.