View Single Post
Old 12-27-2020, 08:14 PM   #1
halloleo
Groupie
halloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
What to do about "Failed to set metadata for the PDF format" on export?

Hi!

I regularly export the books in my library with embedded metadata (via calibredb export) so that other tools can see/index them.

Now I get the following error:

Code:
Failed to set metadata for the PDF format of: Owner's Manual – HS11/HS33
Traceback (most recent call last):
  File "calibre/utils/podofo/__init__.py", line 38, in set_metadata
  File "calibre/utils/ipc/simple_worker.py", line 256, in fork_job
  File "calibre/utils/ipc/simple_worker.py", line 181, in run_job
  File "calibre/utils/ipc/simple_worker.py", line 120, in communicate
calibre.utils.ipc.simple_worker.WorkerError: Worker failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre/customize/ui.py", line 447, in set_file_type_metadata
  File "calibre/customize/builtins.py", line 544, in set_metadata
  File "calibre/ebooks/metadata/pdf.py", line 187, in set_metadata
  File "calibre/utils/podofo/__init__.py", line 42, in set_metadata
Exception: Failed to set PDF metadata in (Owner's Manual – HS11/HS33): Traceback (most recent call last):
  File "calibre/utils/ipc/simple_worker.py", line 304, in main
  File "calibre/utils/podofo/__init__.py", line 99, in set_metadata_
podofo.Error: An internal error occurred.
File: /private/var/folders/hb/2_22y10x72j2tltq8b0ygzp80000gn/T/t/podofo-avye7kfp/src/base/PdfParser.cpp Line: 272 Unable to load objects from file.
File: /private/var/folders/hb/2_22y10x72j2tltq8b0ygzp80000gn/T/t/podofo-avye7kfp/src/base/PdfParserObject.cpp Line: 403 Unable to parse the stream for object 867 0 obj .
File: /private/var/folders/hb/2_22y10x72j2tltq8b0ygzp80000gn/T/t/podofo-avye7kfp/src/base/PdfEncrypt.cpp Line: 411 Error AES-decryption data
How can I fix this? It looks like that one particular book ("Owner's Manual – HS11_HS33.pdf") has some encryption set, but I can view the file without any password, so I don't understand why calibe has problems setting metadata.
halloleo is offline   Reply With Quote