Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2016, 07:02 AM   #1
canpolat
Connoisseur
canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.
 
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
Question Reading metadata from PDF (XMP)

Hi,

It looks like there is a problem with reading XMP metadata from PDF files in my setup (2.63).

Here is how to reproduce it:

1. Select a book and modify its metadata (add a tag, for example)
2. Embed the metadata to file using Calibre's built-in utility
3. Open the file location and copy the PDF file to a temporary place
4. Add the copied file to Calibre.
5. Observe that the modified metadata is not present (Calibre uses the file name to populate some of the fields).

I first thought the problem is related to embedding XMP into the PDF, but then I used http://regex.info/exif.cgi to validate that the XMP data is actually in the file and Calibre does not use it.

In "The Add Process" in my Calibre preferences, "Read metadata from file contents rather than the file name" is selected.

Any pointers would be much appreciated.
canpolat is offline   Reply With Quote
Old 08-20-2016, 07:50 AM   #2
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,546
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Roundtrip as you describe seems to works for me

Imports DC elements like title, tags etc, AND custom columns from http://calibre-ebook.com/xmp-namespace.xml-->calibre:custom_metadata (bag) items.

My add process settings are same as yours

I re-added the book both by drag-drop the file into book list and via Windows Send to:calibre - no difference.

BR
BetterRed is online now   Reply With Quote
Advert
Old 08-20-2016, 08:17 AM   #3
canpolat
Connoisseur
canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.
 
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
Hi BetterRed,

Thanks for taking the time to confirm that it works on your setup. Since this is such a widely used function I was almost sure that the problem is on my setup, but hoping that I was missing an obvious setting. Now, I just need to find what the problem is
canpolat is offline   Reply With Quote
Old 08-20-2016, 05:53 PM   #4
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,546
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by canpolat View Post
Hi,

5. Observe that the modified metadata is not present (Calibre uses the file name to populate some of the fields).
@canpolat - when I re-added the book I deliberately changed the name of the file, there is no evidence of that name in the added book, so everything had to come from embedded metadata.

Essentially I copied a PDF (Romeo a Julia - William Shakespeare.pdf) from my test library to the desktop, renamed it to junk.pdf, and added that file to an empty clone of my test library. The following image demonstrates that.

Click image for larger version

Name:	1.jpg
Views:	263
Size:	302.4 KB
ID:	151100

The following is from Jeffrey Friedl's Metadata Viewer

Click image for larger version

Name:	5.jpg
Views:	458
Size:	358.5 KB
ID:	151101

BR
BetterRed is online now   Reply With Quote
Old 08-20-2016, 11:10 PM   #5
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: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There are two settings that can affect this:

1) Preferences->Add books->Read metadata from file content has to be enabled

2) Preferences->Plugins the PDF metadata reader/writer plugins need to be enabled.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-21-2016, 06:45 AM   #6
canpolat
Connoisseur
canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.
 
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
@BetterRed, my "Adding books" preferences are identical to yours (the ones in the red rectangles).

@kovidgoyal, Thank you for your reply. Both of those settings are set in my installation.

In the meantime, I reinstalled Calibre just to see if it was an installation glitch. I installed the same version (2.63.0) since that is the one that comes from the repositories of my distribution.

Funny thing is, I started getting an error that says "'QResizeEvent' object has no attribute 'tip'" (this was not there before). Apparently that is a bug fixed in a later version (and I'm not worried about not). But the fact that I started getting this error even though versions are the same should mean something.

After the reinstall all my settings were intact. I really don't want to install Calibre from scratch (removing all my settings), but I suppose that is the only thing left.
canpolat is offline   Reply With Quote
Old 08-21-2016, 07:27 AM   #7
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,546
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If you didn't install from links on the calibre downloads page then I suggest you do so.

Another thing to try is to use one of the alternate locations, they're https links. ISPs have been known to play silly buggers with their caching mechanisms, https prevents that.

BR
BetterRed is online now   Reply With Quote
Reply

Tags
add a book, metadata

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF Metadata (Info dictionary and XMP) Punseal Library Management 2 09-14-2015 11:16 AM
Regex help on reading Metadata from file name. JohnnyBook Library Management 11 03-05-2015 07:35 PM
XMP Metadata in PDF ? unboggling Conversion 31 02-25-2014 04:37 PM
Reading metadata on Sony Reader BeccaAnn Calibre 5 08-01-2010 06:06 AM
reading metadata - enhancement DaleDe EPUBReader 1 11-30-2009 01:26 PM


All times are GMT -4. The time now is 06:14 PM.


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