![]() |
#1 |
Member
![]() 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?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2013
Device: Kindle
|
Thanks for your quick reply. Will look into that possibility.
|
![]() |
![]() |
![]() |
#4 |
Member
![]() 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 ...
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2013
Device: Kindle
|
Wow, that's even better! Thanks for the links.
|
![]() |
![]() |
![]() |
Tags |
custom metadata, pdf |
|
![]() |
||||
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 |