Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2014, 03:43 AM   #1
aboettget
Junior Member
aboettget began at the beginning.
 
Posts: 8
Karma: 12
Join Date: Jun 2011
Device: Kindle 3
Insert metadata from Calibre into PDF files

I have written a small shell script which can copy the metadata from Calibre to PDF files:
https://github.com/aboettger/ShellSc...ata_by_calibre

You can call it directly from a terminal. As a parameter a path is expected. This path and all subdirectories are searched.:
Code:
update_pdf_metadata_by_calibre [path_to_calibre_library]
Likewise can be called via Calibre. Look at the image for details.
Attached Thumbnails
Click image for larger version

Name:	Bildschirmfoto von »2014-06-20 09:37:48«.png
Views:	1876
Size:	60.6 KB
ID:	124377  
aboettget is offline   Reply With Quote
Old 06-20-2014, 03:52 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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You know that calibre updates metadata in pdf files on export, right? And that you can use the ebook-meta command to write metadata to PDF files?
kovidgoyal is offline   Reply With Quote
Advert
Old 06-20-2014, 07:33 AM   #3
aritza
Member
aritza began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2010
Device: Calibre
Quote:
Originally Posted by kovidgoyal View Post
You know that calibre updates metadata in pdf files on export, right? And that you can use the ebook-meta command to write metadata to PDF files?
Not really. What do you mean by the "ebook-meta command"? I've been waiting since 2009 (beginning of this thread) to get this to work in a simple way, like Polish Books does for epubs. Thanks.
aritza is offline   Reply With Quote
Old 06-20-2014, 07:57 AM   #4
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ebook-meta is a commandline tool (part of calibre) to display and change metadata in all the ebook formats calibre supports.
kovidgoyal is offline   Reply With Quote
Old 06-20-2014, 12:33 PM   #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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Here you go: https://github.com/kovidgoyal/calibr...39f463d225786a
kovidgoyal is offline   Reply With Quote
Advert
Old 06-21-2014, 03:08 AM   #6
ichbindasauge
Connoisseur
ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.
 
Posts: 89
Karma: 203522
Join Date: Oct 2009
Device: Kindle 2 US, iPad, Samsung Win 8 Tablet
Thank you, Kovid!
ichbindasauge is offline   Reply With Quote
Old 06-22-2014, 05:05 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Couldn't you already do this with Polish books?
eschwartz is offline   Reply With Quote
Old 06-22-2014, 05:41 AM   #8
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Only for EPUB and AZW3.
kovidgoyal is offline   Reply With Quote
Old 06-22-2014, 03:24 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kovidgoyal View Post
Only for EPUB and AZW3.
Ah, excellent point. Should've expected it to be something obvious like that.

So we don't need this option in Polish book anymore, do we?

Also, can it have a plugboard option? Could be useful when running say calibre2opds. If someone wants plugboards to ensure the ebook internal metadata is tweaked from the sorting the library UI provides (since book metadata is not as good as calibre's) then I can see the calibre copies being a valid target for the same kind of processing.
eschwartz is offline   Reply With Quote
Old 06-22-2014, 07:54 PM   #10
BetterRed
null operator (he/him)
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: 20,553
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by eschwartz View Post
So we don't need this option in Polish book anymore, do we?
If it was taken out of Polish, then users that currently use Polish to embed the metadata AND subset embedded fonts etc in EPUBs and AZW3 files would be forced to do two tasks - Polish and Embed.

BR
BetterRed is online now   Reply With Quote
Old 06-22-2014, 10:14 PM   #11
ichbindasauge
Connoisseur
ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.ichbindasauge ought to be getting tired of karma fortunes by now.
 
Posts: 89
Karma: 203522
Join Date: Oct 2009
Device: Kindle 2 US, iPad, Samsung Win 8 Tablet
My suggestion would be to add it to polish books (but then the other options would need to have a note saying "Epub/AZW3 only").
ichbindasauge is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert downloaded metadata from Calibre into PDF files? jarobi Calibre 5 06-20-2014 03:44 AM
Metadata insert Bluebaize Calibre 4 06-22-2011 06:51 PM
Insert metadata as page... paulfiera Calibre 7 12-28-2010 04:59 PM
Writing metadata to PDF files in Calibre asts18 Calibre 3 03-23-2010 01:07 PM
Insert metadata Landrovan Calibre 1 10-05-2009 01:36 PM


All times are GMT -4. The time now is 05:50 PM.


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