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 09-16-2020, 10:17 AM   #1
mcam
Member
mcam began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2013
Device: Kindle
Adding PDFs with custom metadata properties

I have a largish collection of PDF reports (>8000) which contain custom properties in the documents' metadata dictionary (such as /Abstract and /Status). Is there some way I can get Calibre to automatically read the custom properties to user-defined fields when adding these documents to a library, or will I have to manually enter all the metadata?
mcam is offline   Reply With Quote
Old 09-16-2020, 11:05 AM   #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: 45,255
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
directly from the pdf no. But if you know scripting you can add the pdfs using the calibredb command line tool and set the metadata with it at the same time, that you extract from the PDf using some other tool that knows about your custom properties.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-16-2020, 11:35 AM   #3
mcam
Member
mcam began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2013
Device: Kindle
Thanks for your quick reply. Will look into that possibility.
mcam is offline   Reply With Quote
Old 09-17-2020, 06:40 AM   #4
mcam
Member
mcam began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2013
Device: Kindle
Running calibredb from a Python script works like a charm - the option to have the LIST output in JSON form (--for-machine) is particularly commendable. Would be wonderful to have the calibredb functionality as a Python library ...
mcam is offline   Reply With Quote
Old 09-17-2020, 07:26 AM   #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: 45,255
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It is available as a python library.

https://manual.calibre-ebook.com/dev...-your-projects
https://manual.calibre-ebook.com/db_api.html
kovidgoyal is offline   Reply With Quote
Advert
Old 09-17-2020, 10:01 AM   #6
mcam
Member
mcam began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2013
Device: Kindle
Wow, that's even better! Thanks for the links.
mcam is offline   Reply With Quote
Reply

Tags
custom metadata, pdf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding custom metadata fields sutzig Library Management 5 03-20-2019 08:52 PM
Using the custom properties on pdf abuck Calibre 5 10-07-2014 10:38 AM
Problem: Adding metadata to PDFs turelur Amazon Kindle 4 08-28-2014 01:54 AM
Adding Custom Metadata balancestudios Calibre 3 01-23-2012 12:06 PM
Adding properties to books IzzyMad Workshop 3 10-15-2010 11:05 AM


All times are GMT -4. The time now is 02:42 PM.


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