Easy table of content feature with go to links and page numbers
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
The issue proposes adding a BookmarkPageNumber class that resolves a bookmark’s page number when the document closes, but names no source files or tests. First read the document closing and bookmark handling code, then check how generated page numbers can be covered by tests. Done means a table of contents can show links and the correct page numbers for bookmarked content.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Java
- Estrellas
- 4.4k
- Forks
- 714
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LibrePDF/OpenPDF
-
Bump brotli4j to 1.24.0Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
IndexOutOfBoundsException in PdfReaderPosiblemente ocupada @andreasrosdalw la tomó hace 95 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
`PdfSmartCopy` can take effectively unbounded time on nested shared Form XObjectsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
Todos los issues de LibrePDF/OpenPDF
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
breaking change bug needs human review not ready priority medium size S
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
martin-francois/symphony-trello#1193 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Mend: dependency security vulnerability
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100