05-03-2016, 06:53 PM | #1 |
null operator (he/him)
Posts: 20,912
Karma: 27620686
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Embed Metadata on PDF crashes
The attached PDF contains a fill-able form - maybe that's the 'catch'
Code:
calibre, version 2.56.0 WARNING: Failed for some files: Failed to embed metadata into some book files. Click "Show details" for details. The PDF format of demo: Traceback (most recent call last): File "site-packages\calibre\customize\ui.py", line 392, in set_file_type_metadata File "site-packages\calibre\customize\builtins.py", line 499, in set_metadata File "site-packages\calibre\ebooks\metadata\pdf.py", line 158, in set_metadata File "site-packages\calibre\utils\podofo\__init__.py", line 41, in set_metadata Exception: Failed to set PDF metadata in (demo): Traceback (most recent call last): File "site-packages\calibre\utils\ipc\simple_worker.py", line 274, in main File "site-packages\calibre\utils\podofo\__init__.py", line 57, in set_metadata_ Error: A number was expected but not found. |
05-03-2016, 09:38 PM | #2 |
creator of calibre
Posts: 44,315
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's a bug in that PDF that PoDoFo (the library calibre uses to update metadata in PDF files) cannot handle. You can report it to them, although IIRC PoDoFo is soon going to have a release with lots of bug fixes, so hopefully it will sort itself out then.
Last edited by kovidgoyal; 05-04-2016 at 12:06 AM. |
Advert | |
|
05-03-2016, 11:25 PM | #3 |
null operator (he/him)
Posts: 20,912
Karma: 27620686
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The PDF was in my test library, it's part of a failed experiment with a fanfic fan-fan, so its irrelevant as such. But I'll keep a watch out for the new PoDoFo library and try to remember give another shot then.
BR |
11-07-2016, 01:27 PM | #4 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: Kindle 3, PW2
|
I'd that issues with some files. The same unknown bug prevent Acrobat Reader opening it.
I opened it using the PDF-XChange Viewer, changed a metadata character and saved it. Now Acrobat Reader started working again and Calibre could embed metadata. I guess PDF-XChange fixed whatever was broken |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Embed Comic Metadata | dickloraine | Plugins | 114 | 07-14-2024 09:21 AM |
Where is the embed metadata command? | SCOTTMD43 | Calibre | 4 | 05-04-2016 07:32 AM |
Failed to embed metadata | mihal.v | Library Management | 6 | 07-11-2015 12:21 PM |
embed metadata option | mytrivo | Library Management | 3 | 06-24-2015 01:34 AM |
Adding comments to embed metadata | MichelleB | Conversion | 7 | 07-18-2014 11:13 AM |