Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 01:51 AM   #1
rexylic
Junior Member
rexylic began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2025
Location: Toronto
Device: ViWoods AiPaper, Kindle Paperwhite 12th gen.
Smile [Metadata Writer Plugin] Embed PDF ToC

Add table of contents to PDFs using pypdf.

A table of contents can be specified either in a plain-text file or by adding entries to a table in Calibre. Both formats are equivalent. The plain-text file looks like this:

Code:
Preface vi
Introduction 1
Chapter 1 3
    1. A story 4
    2. Another story 7
        2.1 Anecdote 9
Chapter 2 20
The table of contents is saved in the book's data folder, and can be edited, re- and un-embedded at any time.

A limited clean-up function using ghostscript is available through the dialog window. I've encountered cases where the ToC shows up in my PDF viewer but not on my e-reader; the clean-up function fixes this.

This is my first time posting on mobilereads. Please let me know if I'm breaking any rules or how I can improve my posts. Thanks!

Installation and usage
Download the zip and load it via "load plugin from file". The "Embed ToC" action will be available in interface preferences.
Attached Files
File Type: zip embed-toc-v0.4.0.zip (331.7 KB, 9 views)

Last edited by rexylic; Yesterday at 01:53 AM. Reason: Clarification on functionality
rexylic is offline   Reply With Quote
Old Yesterday, 01:52 AM   #2
rexylic
Junior Member
rexylic began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2025
Location: Toronto
Device: ViWoods AiPaper, Kindle Paperwhite 12th gen.
Reserved since I saw other people do it
rexylic is offline   Reply With Quote
Advert
Old Yesterday, 03:07 AM   #3
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 2,180
Karma: 7966751
Join Date: Sep 2020
Device: none
Very cool! It's great that the plugin allows setting negative page offset.
Comfy.n is online now   Reply With Quote
Reply

Tags
pdf, toc


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Embed Comic Metadata dickloraine Plugins 116 11-02-2025 07:01 AM
Failed to embed metadata into PDF shuvashish76 Calibre 3 05-31-2025 12:55 PM
[Metadata Writer Plugin] KePub Metadata Writer jgoguen Plugins 61 06-23-2020 02:01 AM
Embed Metadata PDF tomx2 Calibre 14 09-29-2019 01:52 PM
Embed Metadata on PDF crashes BetterRed Calibre 3 11-07-2016 01:27 PM


All times are GMT -4. The time now is 03:28 PM.


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