View Single Post
Old 03-16-2021, 03:13 PM   #119
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by ZsoltKa View Post
How do I make Prince PDF so it will recognize and read the EPUB TOC file.
The plugin does not read the NCX file. The PDF toc is generated by Prince from the HTML contents. I'm not sure Prince can use any external file for a toc, probably not.

What you can do is add CSS code to let Prince create a reasonable TOC. Something like:

Code:
h1 {
  prince-bookmark-level: 1;
  prince-bookmark-label: content();
}
h2 {
  prince-bookmark-level: 2;
}
See https://www.princexml.com/doc/10/pdf-bookmarks/
Jellby is offline   Reply With Quote