07-27-2009, 07:15 AM | #1 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
PDF metadata and covers
I've finally installed Calibre in a new netbook I've got...
I have a couple of questions about PDFs. When I import a PDF, it seems Calibre is not reading the metadata, instead the title is taken from the filename and the author is Unknown. The PDFs are created with LaTeX/hyperref (and they're uploaded to MR), and the title and author are seen by pdfinfo and ebook-meta. The PDF metadata reader plug-in is enabled, as far as I can tell, and the "read metadata from files" box is checked (it works fine for Mobi files), did I miss any other setting? Also, is there a way to re-read all metadata from a given file and assign it to the book entry? I think I have read in some thread (no, it's in the changelog) that Calibre could read covers (that is, the first page) from PDF files, however my PDFs get only a generic cover assigned. Is there a way to automatically use the first page as cover? I'm only interested in the library management part of the program now, not on the conversion features. |
07-27-2009, 09:31 AM | #2 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
Advert | |
|
07-27-2009, 09:56 AM | #3 |
creator of calibre
Posts: 44,553
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
reading metadata from PDFs is slow. A separate process has to be launched for every PDF. What OS are you running calibre on?
|
07-27-2009, 10:23 AM | #4 | |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Besides the particular "problem" with PDF metadata (can't something like pdfinfo be used cross-platform?), there's the problem of reading metadata from a file, as it can be done with the cover. I import first a .mobi file, which has only author and title, then I add the .epub, which has author, file-as, title, subjects, date, etc. How could I make Calibre update the metadata in its database from the .epub file? PS. When I say "issue" or "problem", I mean that's my issue or problem, I don't want to imply there is a problem with Calibre (other than maybe a missing feature that I'd like ) |
|
07-27-2009, 10:43 AM | #5 |
creator of calibre
Posts: 44,553
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You're using the binary installer? And ebook-meta reads PDF metadata correctly, but the GUI doesn't? Strange.
The best way to "update metadata" from a new format is to create a new entry, insert the old format into the new entry and delete the old entry. |
Advert | |
|
07-27-2009, 11:17 AM | #6 | ||
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
epub-meta works fine, it gives (after 30 seconds or more) Title, Author(s) and Book Producer. Importing the PDFs from the GUI results in "Unknown" Author and filename as book title. Maybe it's because of some timeout? But I didn't notice it took any longer to import PDFs... Quote:
|
||
07-27-2009, 11:40 AM | #7 |
creator of calibre
Posts: 44,553
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
run the GUI from the command prompt and see if it gives you any debugging output. Sounds like the PDF metadata reading library is failing to load when run from the GUI
|
07-27-2009, 12:04 PM | #8 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Guess what. I have tried now (deleted and reimported a PDF book) and it has worked. It read the metadata and the cover too (and it takes a loooooong time).
I wonder... When I first tried I hadn't yet installed poppler (since "pdfinfo" was "command not found"), but ebook-meta worked and it was then when I got the Unknown authors. Now I have poppler installed, and the metadata has been read. Could that be the reason? |
07-27-2009, 12:07 PM | #9 |
creator of calibre
Posts: 44,553
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre uses podofo to read PDF metadata. So poppler shouldn't matter (in any case the binary comes with its own poppler library)
|
07-27-2009, 12:39 PM | #10 | |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Anyway, now it works and I don't have more PDFs to import Thanks for caring. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata and book covers | Magic Man | Calibre | 3 | 09-05-2010 07:20 AM |
Suggestion for Download Metadata and Covers | tazem | Calibre | 7 | 06-02-2010 06:34 PM |
Unable to download metadata, covers | Pushka | Calibre | 6 | 05-22-2010 01:24 AM |
Suggestion: View Covers within fetched metadata | node | Calibre | 4 | 01-29-2010 09:46 PM |
Covers/Metadata from LIBPRS500 or after a file's been LRF'd | Gideon | Calibre | 11 | 01-27-2008 03:24 AM |