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, 09:35 AM   #16
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,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Does not reproduce for me.
Code:
ebook-meta --series testme  t.pdf                                                                                                    
Original metadata::
	Title               : xxxaaa
	Title sort          : xxxaaa
	Author(s)           : R. Z. Bottema O. & Djordjevic
	Published           : 0101-01-01T00:00:00+00:00

Changed metadata::
	Title               : xxxaaa
	Title sort          : xxxaaa
	Author(s)           : R. Z. Bottema O. & Djordjevic
	Series              : testme #1
	Published           : 0101-01-01T00:00:00+00:00
kovidgoyal is offline   Reply With Quote
Old 04-21-2025, 09:47 AM   #17
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
Ok. I see you try with standard column.
Can you please reconfirm it works with custom column also?

Here my examples:

First (without changes)

Title : v3_demo-
Title sort : v3_demo-
Author(s) : Unbekannt
Book Producer : PScript5.dll Version 5.2.2
Published : 0101-01-01T00:00:00+00:00
Identifiers : crc32:52368
CRC32 : 52368
Mein Titel : old
Ja/Nein : Ja

Secound (with changes and "Embed metadata" button)

Title : v3_demo-
Title sort : v3_demo-
Author(s) : Unbekannt
Book Producer : PScript5.dll Version 5.2.2
Published : 0101-01-01T00:00:00+00:00
Identifiers : crc32:52368
CRC32 : 52368
Mein Titel : old
Ja/Nein : Ja

Third (with changes and "Interface Demo Plugin" button)

Title : v3_demo-
Title sort : v3_demo-
Author(s) : Unbekannt
Book Producer : PScript5.dll Version 5.2.2
Published : 0101-01-01T00:00:00+00:00
Identifiers : crc32:52368
CRC32 : 52368
Mein Titel : meta

All these results are with this Preferences (pic 001,002,003)
Attached Thumbnails
Click image for larger version

Name:	001.png
Views:	52
Size:	102.9 KB
ID:	215192   Click image for larger version

Name:	002.png
Views:	60
Size:	47.6 KB
ID:	215193   Click image for larger version

Name:	003.png
Views:	70
Size:	41.4 KB
ID:	215194  
tribbleoo is offline   Reply With Quote
Advert
Old 04-21-2025, 09:48 AM   #18
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,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And to demonstrate setting of custom column metadata
Code:
ebook-meta --from-opf ~/test\ library/Kovid\ Goyal/DOCX\ Demo*/*.opf t.pdf                                                            *
Original metadata::
	Title               : xxxaaa
	Title sort          : xxxaaa
	Author(s)           : R. Z. Bottema O. & Djordjevic
	Series              : testme #1
	Published           : 0101-01-01T00:00:00+00:00

Changed metadata::
	Title               : DOCX Demo
	Title sort          : DOCX Demo
	Author(s)           : Kovid Goyal & A B [Goyal, Kovid & b, a]
	Publisher           : Kovid Goyal
	Tags                : a1, a2, conversion, docs, ebook
	Series              : s #0
	Languages           : eng
	Published           : 2016-02-16T18:30:00+00:00
	Comments            : <div>
	<p>Demonstration of DOCX support in calibre</p>
	<p><a href="#library_id=test_library&amp;panel=book_list&amp;search=authors:%22%3DKovid%20Goyal%22&amp;sort=timestamp.desc"><span style="color: #6cb4ee">Search for Kovid Goyal</span></a><br><a href="calibre://show-book/_hex_-746573745f6c696272617279/2123"><span style="color: #6cb4ee">Sonnets</span></a></p>
	<p><a href="calibre://view-book/_hex_-746573745f6c696272617279/2123/EPUB?open_at=epubcfi(/12/2/4/2/10/42/2[f000012]/1:33)"><span style="color: #6cb4ee">Sonnet III</span></a></p>
	<p><a href="calibre://search/_hex_-746573745f6c696272617279?eq=6173696d6f76206f72206d6f6f7365"><span style="color: #6cb4ee">Test search in library</span></a></p></div>
	My Authors👨         : calibre
	My Comments         : <div>
	<p><em style="font-weight: 700">Testing2</em> extra <span style="color: #aa0000">comments</span></p>
	<p>Wowee2 ======== meow</p></div>
	My Date             : 13-03-2018
	Formats             : AZW3, DOCX, EPUB, ORIGINAL_AZW3, ORIGINAL_EPUB, PDF
	Genre               : Demos
	ISBN                : EMPTY
	My Enum             : Three
	Number              : 3336
	My Rating           : 4.5
	My Tags             : a, t1, t2
	My Title            : Nice formatting, no
	Yes/No              : Yes
kovidgoyal is offline   Reply With Quote
Old 04-21-2025, 10:01 AM   #19
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
OK. I see you read the metadata from the opf and not direct from pdf. Right?

How look your solution from

ebook-meta file.pdf

One more thing i see is, with "Embed metadata" button i don't get a message, with "Interface Demo Plugin" button i get a message. See pics 008,009
Attached Thumbnails
Click image for larger version

Name:	008.png
Views:	63
Size:	124.6 KB
ID:	215196   Click image for larger version

Name:	009.png
Views:	56
Size:	120.1 KB
ID:	215197  
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 10:27 AM   #20
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
One more thing i see or find out
Its a different how the pdf was imported

If you Drag&Drop the PDF and you have follow Perferences, the functions from the Buttons looks equal
(Pic010)

If i Drag&Drop a PDF with Preferences like Pic003, the functions of the Buttons are different.

I am not shure is my fault or is a bug.
Attached Thumbnails
Click image for larger version

Name:	010.png
Views:	57
Size:	35.1 KB
ID:	215198   Click image for larger version

Name:	003.png
Views:	63
Size:	41.4 KB
ID:	215199  
tribbleoo is offline   Reply With Quote
Advert
Old 04-21-2025, 10:34 AM   #21
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,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by tribbleoo View Post
OK. I see you read the metadata from the opf and not direct from pdf. Right?

How look your solution from

ebook-meta file.pdf

One more thing i see is, with "Embed metadata" button i don't get a message, with "Interface Demo Plugin" button i get a message. See pics 008,009
No --from-opf is used to SET the metadata. It is set in the pdf and then read from there
kovidgoyal is offline   Reply With Quote
Old 04-21-2025, 10:49 AM   #22
tribbleoo
Member
tribbleoo began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2019
Device: none
thx again for spent your time. Maybe i really missunderstood the function.
But why, with the one Button it writes the changed data direct to PDF or i can see the changes direct after push the button and why with the other button i get a different response in my PDF (no data changes)? This is what i don't understand.
If the function is the same, i think i must get with both buttons the same solutions. Right?
tribbleoo is offline   Reply With Quote
Old 04-21-2025, 10:59 AM   #23
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,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are doing something different in the two cases. Cant help you with that.
kovidgoyal is offline   Reply With Quote
Old 05-21-2025, 06:07 AM   #24
kamowski
Junior Member
kamowski began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2025
Device: none
Quote:
Originally Posted by tribbleoo View Post
Hello,
as i wrote in my first post, this button can found inside the sample from manual creating plugins...
Calibre has its own directory for items that are in the library, along with its own database. When you add a PDF file to the library, it is saved in this directory and recorded in the database. At the same time, your original PDF file remains where it was. Now it is duplicated on your disk — delete it or keep it, as you prefer.

- The function in Calibre is used when adding a PDF document to the library; it retrieves the Author-Title-... from the metadata of the added PDF document OR extracts it from the file name and records it in the Calibre database.
- The function in the plugin works with a document that is already in the library. If you edit the metadata in library, it is automatically saved to the database, and this plugin also writes it directly into the PDF file in the Calibre directory.

If you don't use the plugin but want to have the metadata directly in the PDF file, set it in "Save to Disk" and then save the file to your disk. This is not written into the PDF file in the Calibre directory!
kamowski 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 01:36 PM.


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