You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I need to generate a PDF containing a table of content with go to links and page numbers at the beginning of the document.
Describe the solution you'd like
It would be amazing to have a way to insert a page number of a bookmark that was not currently known. Maybe something like this could be done to fill the table of content with page number:
final Paragraph par = new Paragraph();
final Chunk c = new Chunk(chapTitle));
c.setLocalGoto(bookmark);
par.add(c);
par.add(new Chunk(new DottedLineSeparator()));
par.add(new Chunk(new BookmarkPageNumber(bookmark));
summaryChapter.add(par);
I imagine a class BookmarkPageNumber taking a bookmark name as parameter and will write the page number when the document is closed.
Describe alternatives you've considered
The only way I found is to insert the table of content at the end of the book.
Your real name
no
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I need to generate a PDF containing a table of content with go to links and page numbers at the beginning of the document.
Describe the solution you'd like
It would be amazing to have a way to insert a page number of a bookmark that was not currently known. Maybe something like this could be done to fill the table of content with page number:
I imagine a class BookmarkPageNumber taking a bookmark name as parameter and will write the page number when the document is closed.
Describe alternatives you've considered
The only way I found is to insert the table of content at the end of the book.
Your real name
no
Additional context
The text was updated successfully, but these errors were encountered: