Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-08-2023, 04:50 PM   #1
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Importing PDFs with metadata

I am wondering about importing a set of PDF magazine issues into my Calibre library.

If I import tham via "Add Books" I get poor results because currently the only metadata in the PDFs is the magazine name, and I get a bunch of hard to distinguish magazines with identical names. I need the year and issue number to be imported as well, which matches how the magazines are published.

I can script exiftool (not the first tool I'd have thought of) to write metadata into each PDF.

But what does Calibre read from a PDF and put into things like dates and number-in-series?
chrisridd is offline   Reply With Quote
Old 12-08-2023, 10:44 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,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You dont need to use exiftool, use the ebook-meta tool from calibre that will allow you to set all metadata in PDF including series. And that metadata will be read when adding the pdfs to calibre
kovidgoyal is offline   Reply With Quote
Advert
Old 12-09-2023, 03:23 AM   #3
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 490
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
If the file names are meaningful and follow a pattern, Calibre can also read the data using these.
Wiggo is offline   Reply With Quote
Old 12-09-2023, 04:52 AM   #4
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Quote:
Originally Posted by kovidgoyal View Post
You dont need to use exiftool, use the ebook-meta tool from calibre that will allow you to set all metadata in PDF including series. And that metadata will be read when adding the pdfs to calibre
Ah, that's a perfect solution! Thank you very much.
chrisridd is offline   Reply With Quote
Old 12-09-2023, 04:56 AM   #5
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Quote:
Originally Posted by Wiggo View Post
If the file names are meaningful and follow a pattern, Calibre can also read the data using these.
It didn't work out for me, maybe because I didn't use a pattern that Calibre was expecting.

But the ebook-meta tool is exactly what I needed, especially because I want the metadata to live inside the original file whenever possible.
chrisridd is offline   Reply With Quote
Advert
Old 12-09-2023, 05:45 AM   #6
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 490
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Quote:
Originally Posted by chrisridd View Post
It didn't work out for me, maybe because I didn't use a pattern that Calibre was expecting.
You can define the pattern yourself, but I think the file name is only useful if the name is already reasonably meaningful.

If there are too many changes, the tool makes more sense

Quote:
But the ebook-meta tool is exactly what I needed, especially because I want the metadata to live inside the original file whenever possible.
You can write the metadata to the file anytime via Calibre
Wiggo is offline   Reply With Quote
Reply

Tags
metadata, pdf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing PDFs, using filename and using PDF cover Alex_Sanders Calibre 1 10-28-2023 11:38 PM
Open pdfs in Moon+ Reader without importing/copying memokun Android Devices 5 09-15-2020 05:59 AM
Importing metadata in 0.9.4 arthurattwell Sigil 4 03-15-2016 03:20 PM
Random Metadata when Importing???? Woodssi Library Management 4 12-22-2014 11:54 AM
howto: importing PDFs to a word processor Antartica iRex 10 11-06-2006 12:03 PM


All times are GMT -4. The time now is 03:55 PM.


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