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 01-14-2019, 02:42 PM   #1
Bhuvanesh
Junior Member
Bhuvanesh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2019
Device: Android phone (Samsung Galaxy S9+), MacOSX
Automatically populating metadata for PDF files based on filename

Hi, I have lots of PDF files with messed up metadata, but their filenames all follow one of these forms:
Authors (separated by commas) - Title.pdf
Authors (separated by commas) - Series SeriesNumber - Title.pdf

Is there a way to use this filename information to correct the metadata?

Thanks,
Bhuvanesh
Bhuvanesh is offline   Reply With Quote
Old 01-14-2019, 03:04 PM   #2
BetterRed
null operator
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: 13,277
Karma: 10793754
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Preferences->Adding Books->Reading Metadata tab

Click image for larger version

Name:	4.jpg
Views:	55
Size:	154.2 KB
ID:	169094

BR
BetterRed is offline   Reply With Quote
Advert
Old 01-14-2019, 03:40 PM   #3
Bhuvanesh
Junior Member
Bhuvanesh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2019
Device: Android phone (Samsung Galaxy S9+), MacOSX
Quote:
Originally Posted by BetterRed View Post
Preferences->Adding Books->Reading Metadata tab

Attachment 169094

BR
Thanks! Will that metadata be saved to the PDF file, so that the corrected metadata appears when I transfer the PDF to my phone, or is it internal to calibre?
Bhuvanesh is offline   Reply With Quote
Old 01-14-2019, 04:35 PM   #4
BetterRed
null operator
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: 13,277
Karma: 10793754
Join Date: Mar 2012
Location: Sydney Australia
Device: none
No it wont, it will go into calibre's data base.

However, you can inject it into the library copy of the PDF using the Embed Metadata tool, which you'll probably need to add to a toolbar or menu via Preferences->Toolbars and menus. Metadata can also be embedded in the copy that's created when the Send to a Device and Save to Disk tools are used.

Caveat: I'm not a 100% certain metadata embedding (in Library, or Save, or Send) will work on all PDFs. And most PDF reading apps won't display metadata apart from Title and Author, e.g. Series because its not a Dublin Core element, and nor anything else that's embedded as XMP metadata.

BR
BetterRed is offline   Reply With Quote
Old 01-15-2019, 01:39 AM   #5
Bhuvanesh
Junior Member
Bhuvanesh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2019
Device: Android phone (Samsung Galaxy S9+), MacOSX
Quote:
Originally Posted by BetterRed View Post
No it wont, it will go into calibre's data base.

However, you can inject it into the library copy of the PDF using the Embed Metadata tool, which you'll probably need to add to a toolbar or menu via Preferences->Toolbars and menus. Metadata can also be embedded in the copy that's created when the Send to a Device and Save to Disk tools are used.

Caveat: I'm not a 100% certain metadata embedding (in Library, or Save, or Send) will work on all PDFs. And most PDF reading apps won't display metadata apart from Title and Author, e.g. Series because its not a Dublin Core element, and nor anything else that's embedded as XMP metadata.

BR
I found this nice regex for extracting metadata from the filename:
http://www.dennisonpro.info/setting-...ks-to-calibre/

Is there an easy way to replace " ~" in the filename with ":" (without quotes) in the title in the metadata?
Bhuvanesh is offline   Reply With Quote
Advert
Reply

Tags
filename, metadata, pdf metadata

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save the Metadata to the Libary files/change filename to the Metadata RyuujiTakasu Calibre 10 03-19-2014 02:01 PM
Automatically populating metadata "tags" field from directory structure battaglia01 Calibre 1 12-13-2012 09:23 PM
Touch Script: Creating and populating shelves based on calibre tags Krytes Kobo Reader 7 10-02-2012 01:57 PM
rename files based on metadata jchrist Calibre 10 09-14-2010 10:28 AM
Content PDF: Homescreen shows Filename instead of Title (Metadata) bear4hunter Amazon Kindle 1 08-02-2010 12:35 AM


All times are GMT -4. The time now is 09:58 PM.


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