Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2016, 06:53 PM   #1
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,668
Karma: 26966376
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.
BR
Attached Files
File Type: pdf demo - Nick.pdf (13.9 KB, 157 views)
BetterRed is offline   Reply With Quote
Old 05-03-2016, 09:38 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,000
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-03-2016, 11:25 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,668
Karma: 26966376
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
BetterRed is offline   Reply With Quote
Old 11-07-2016, 01:27 PM   #4
euleralves
Junior Member
euleralves began at the beginning.
 
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
euleralves is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Embed Comic Metadata dickloraine Plugins 112 02-22-2024 01:01 PM
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


All times are GMT -4. The time now is 09:07 AM.


MobileRead.com is a privately owned, operated and funded community.