Not sure if this should be in this category but here goes:
I find I cannot open and read some pdf books I'd thought were successfully imported into calibre.
The error message talks about dedrm but there's no drm on these at all or shouldn't be.
I checked a couple of them and sure enough, there's nothing. They're just straight pdf's.
I wonder if this means my whole calibre library is corrupt or suspect in some way? Bit of a worry. I've been thinking of the calibre library as my 'backup', my ultimate definitive collection.
Had the naive idea that if it was listed in there it'd be readable (and therefore capable of manipulation: export etc ) but that's apparently not true.
so is there a routine or a function we can/should employ that will check each book as imported to the library for 'readability' ?
Can't do them one by one manually, just too many.
Here's a sample error message from one of them:
calibre, version 5.16.1
ERROR: Loading book failed: Failed to open the book at D:\calibrelibrary\A Fire In The Sun\George Alec Effinger - Marid 2 (17112)\George Alec Effinger - Marid 2 - A Fire In The Sun.pdf. Click "Show details" for more info.
Failed to convert book: D:\calibrelibrary\A Fire In The Sun\George Alec Effinger - Marid 2 (17112)\George Alec Effinger - Marid 2 - A Fire In The Sun.pdf with error:
DeDRM v7.1.0: Trying to decrypt George Alec Effinger - Marid 2 - A Fire In The Sun.pdf
DeDRM v7.1.0: George Alec Effinger - Marid 2 - A Fire In The Sun.pdf is a PDF ebook
DeDRM v7.1.0: Trying Encryption key default_key
DeDRM v7.1.0: Exception when decrypting after 0.1 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 434, in PDFDecrypt
File "calibre_plugins.dedrm.ineptpdf", line 2178, in decryptBook
File "calibre_plugins.dedrm.ineptpdf", line 1983, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1791, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1416, in set_parser
File "calibre_plugins.dedrm.ineptpdf", line 1917, in read_xref
File "calibre_plugins.dedrm.ineptpdf", line 1874, in find_xref
calibre_plugins.dedrm.ineptpdf.PDFNoValidXRef: Unexpected EOF
DeDRM v7.1.0: Failed to decrypt with key default_key after 0.1 seconds
DeDRM v7.1.0: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
Found 1 keys
DeDRM v7.1.0: Trying a new default key
DeDRM v7.1.0: Exception when decrypting after 0.1 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 485, in PDFDecrypt
File "calibre_plugins.dedrm.ineptpdf", line 2178, in decryptBook
File "calibre_plugins.dedrm.ineptpdf", line 1983, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1791, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1416, in set_parser
File "calibre_plugins.dedrm.ineptpdf", line 1917, in read_xref
File "calibre_plugins.dedrm.ineptpdf", line 1874, in find_xref
calibre_plugins.dedrm.ineptpdf.PDFNoValidXRef: Unexpected EOF
DeDRM v7.1.0: Failed to decrypt with new default key after 0.1 seconds
DeDRM v7.1.0: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper's repository:
https://github.com/apprenticeharper/...master/FAQs.md
Syntax Error: Document stream is empty
pdfinfo errored out with return code: 1
InputFormatPlugin: PDF Input running
on D:\calibrelibrary\A Fire In The Sun\George Alec Effinger - Marid 2 (17112)\George Alec Effinger - Marid 2 - A Fire In The Sun.pdf
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "calibre\customize\ui.py", line 433, in get_file_type_metadata
File "calibre\customize\builtins.py", line 346, in get_metadata
File "calibre\ebooks\metadata\pdf.py", line 126, in get_metadata
ValueError: Could not read info dict from PDF
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 176, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 638, in run
File "calibre_plugins.dedrm.__init__", line 513, in PDFDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v7.1.0: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper's repository:
https://github.com/apprenticeharper/...master/FAQs.md
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 82, in <module>
File "site.py", line 77, in main
File "site.py", line 49, in run_entry_point
File "calibre\utils\ipc\worker.py", line 197, in main
File "<string>", line 1, in <module>
File "calibre\srv\render_book.py", line 824, in viewer_main
File "calibre\srv\render_book.py", line 815, in render_for_viewer
File "calibre\srv\render_book.py", line 792, in render
File "calibre\ebooks\oeb\iterator\book.py", line 63, in extract_book
File "calibre\customize\conversion.py", line 245, in __call__
File "calibre\ebooks\conversion\plugins\pdf_input.p y", line 54, in convert
File "calibre\ebooks\pdf\pdftohtml.py", line 83, in pdftohtml
calibre.ebooks.ConversionError: pdftohtml failed with return code: 1
Syntax Error: Document stream is empty
Exception ignored in: <function NativeFunction.__del__ at 0x000001EA6FFA7940>
Traceback (most recent call last):
File "calibre_plugins.dedrm.adobekey", line 266, in __del__
TypeError: 'NoneType' object is not callable
Exception ignored in: <function NativeFunction.__del__ at 0x000001EA6FFA7940>
Traceback (most recent call last):
File "calibre_plugins.dedrm.adobekey", line 266, in __del__
TypeError: 'NoneType' object is not callable