Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 04-21-2025, 04:14 AM   #1
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
XMP Metadata in PDF - differents functions


Hello,
can somebody explain me the different between these 2 functions?
1. I activate in Preferences "Embed metadata".
2. I import the example "Interface Demo Plugin" from the manual.
3. I create custom fields in calibre. Now i want to write the data/metadata to my pdf.
Test 1:
=====
First i try the function "Embed metadata" and check my pdf. No new metadata included.
Test 2:
=====
In the "Interface Demo Plugin" is a button "Update metadata in a book's files". I try this button and now are my metada was written direct without doing something else.

Question: Why? What are the difference of these functions or why this don't work also with the "Embed metadata" Button?

Best regards
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 04:57 AM   #2
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: 21,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Embed in PDF works for me, what are you using to examine the PDF, this is from PDF xChange Document properties:

Click image for larger version

Name:	Screenshot 2025-04-21 185149.jpg
Views:	22
Size:	231.3 KB
ID:	215166

BR
BetterRed is offline   Reply With Quote
Advert
Old 04-21-2025, 05:36 AM   #3
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Hello,
thanks for the quick response. I think to explain more in detail
1. System: Windows 10 / Calibre 8.3.0
2. Testfile
https://www.uni-muenster.de/imperia/...ungen_pdfa.pdf
3. Preferences (see pictures 001,002,003)
4. Resluts with "Embed metadata" (004) and "Interface Demo Plugin" (005)
I also use PDF-XChange Editor.
Attached Thumbnails
Click image for larger version

Name:	001.png
Views:	15
Size:	102.9 KB
ID:	215167   Click image for larger version

Name:	002.png
Views:	18
Size:	47.6 KB
ID:	215168   Click image for larger version

Name:	003.png
Views:	18
Size:	41.4 KB
ID:	215169   Click image for larger version

Name:	004.png
Views:	15
Size:	94.0 KB
ID:	215170   Click image for larger version

Name:	005.png
Views:	13
Size:	95.2 KB
ID:	215171  
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 05:40 AM   #4
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
thx for quick response. i already answer, but i cant't find the post.
again.
System: Win10 / Calibre 8.3.0
Preferences: Pic 001,002,003
Results with PDF-XChange Editor: Pic 004,005

Last edited by tribbleoo; 04-21-2025 at 05:43 AM.
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 05:44 AM   #5
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
here the pics
Attached Thumbnails
Click image for larger version

Name:	001.png
Views:	8
Size:	102.9 KB
ID:	215177   Click image for larger version

Name:	002.png
Views:	15
Size:	47.6 KB
ID:	215178   Click image for larger version

Name:	003.png
Views:	14
Size:	41.4 KB
ID:	215179   Click image for larger version

Name:	004.png
Views:	14
Size:	94.0 KB
ID:	215180   Click image for larger version

Name:	005.png
Views:	17
Size:	95.2 KB
ID:	215181  
tribbleoo is offline   Reply With Quote
Advert
Old 04-21-2025, 05:46 AM   #6
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Here the informations.
System: Windows 10 / Calibre 8.3.0
Preferences: Pic 001,002,003
Results with PDF-XChange Editor
"Embed metadata" Pic004
"Update metadata in a book's files" Pic005

Last edited by tribbleoo; 04-21-2025 at 05:49 AM.
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 05:53 AM   #7
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: 21,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Click the '>' at the start of the "http://calibre-ebook.com…" line in that last screen shot, or press the right arrow key. Ditto when you see the custom columns line.

BR


Moderator Notice
For some reason best known to Mr Flay of Gormenghast Castle your replies were falling into the moderation bucket.

Last edited by BetterRed; 04-21-2025 at 06:02 AM.
BetterRed is offline   Reply With Quote
Old 04-21-2025, 06:14 AM   #8
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Hello,
thx again.
i try to explain again.
- Download the example file from the link below (or any other pdf).
- Set the preferences like in Pics 001 - 003
- Drag&Drop the pdf in Calibre
- add some custom data
- push "Embed metadata" Button.
- check the metadata in pdf file
Can u realy confirm, that now already all custum data was written to the pdf file?

To your response:
yes thats the result, after i pushed the "Update metadata in a book's files" button and yes there are now the customs data inside the pdf. Yes i can explore that row with the > arrow.

But how about the result of the "Embed metadata" Button? Why they have different functions? I have think, that after push this button, there also will written the data directly to the pdf. As you see in Pic004, there are no "http://calibre-ebook.com…" line. Thats what i mean.
I hope i explaint it more clearly now.
thx
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 06:36 AM   #9
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Hello,
ok, here one more check with the calibre "ebook-meta" function.

1.
- check metadata from the file with "ebook-meta file.pdf"
- change in calibre the custum data
- push "Embed metadata" Button
- check metadata again with "ebook-meta"
Result: no data changes

2.
- check metadata from the file with "ebook-meta file.pdf"
- change in calibre the custum data
- push "Update metadata in a book's files" button
- check metadata again with "ebook-meta"
Result: data changes

Whats the different?
thx and best regards
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 07:32 AM   #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: 21,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Where is the "Update metadata in a book's files" button. If you mean this button:

Click image for larger version

Name:	Clipboard_04-21-2025_01.jpg
Views:	18
Size:	84.6 KB
ID:	215183

That button extracts the standard metadata from the format file and writes it to the database - it does NOT update the format files. Maybe the tooltip has been poorly translated.

Quote:
Set metadata for the book from the selected format
BR
BetterRed is offline   Reply With Quote
Old 04-21-2025, 08:01 AM   #11
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Hello,
as i wrote in my first post, this button can found inside the sample from manual creating plugins.

https://manual.calibre-ebook.com/creating_plugins.html
https://calibre-ebook.com/downloads/...emo_plugin.zip
Attached Thumbnails
Click image for larger version

Name:	006.png
Views:	24
Size:	104.3 KB
ID:	215184   Click image for larger version

Name:	007.png
Views:	22
Size:	6.9 KB
ID:	215185  
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 08:26 AM   #12
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: 21,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Ask Kovid, he wrote it. Until now I never heard of it.

This is not a conversion issue, it's more of a development issue. So I'll move the thread to the Development at subforum.

BR

Last edited by BetterRed; 04-21-2025 at 08:44 AM.
BetterRed is offline   Reply With Quote
Old 04-21-2025, 08:41 AM   #13
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Hello,
please don't missunderstood.
I also found this sample plugin randomly while i playing around with calibre. So i saw the button and checked it. After that i found out the difference of the functions.

@Kovid
It is possible to implement the function like it work in the example ("Interface Demo Plugin") to the "Embed metadata" button?

thx again to @BetterRed for spent your time to response my posts
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 09:10 AM   #14
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,163
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
They use the same function.
kovidgoyal is offline   Reply With Quote
Old 04-21-2025, 09:21 AM   #15
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Hello,

@Kovid thx for the quick response. But why are results different?

You can prove the results for your own.

I think with the "ebook-meta" function you can see it definitv.
tribbleoo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading metadata from PDF (XMP) canpolat Library Management 6 08-21-2016 07:27 AM
PDF Metadata (Info dictionary and XMP) Punseal Library Management 2 09-14-2015 11:16 AM
XMP Metadata in PDF ? unboggling Conversion 31 02-25-2014 04:37 PM
metadata plugboard functions? mfaine Calibre 2 01-09-2011 05:37 AM
what are the differents among those e-book file format ? (beginner here. ) kawaisoonano Amazon Kindle 2 02-08-2010 01:55 AM


All times are GMT -4. The time now is 08:43 AM.


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