In my current java/springboot project, I need to create a PDF dynamicaly containing paragraphs, images and tables. And I also need to add the table of content of this document.
I'm wondering if there is a way to automatically generate this table of contents using either openPdf or pdfBox.
I noticed that it is possible to do so using IText, but it is not free...
Thanks in advance for your help.
You can use OpenPDF for this: https://github.com/LibrePDF/OpenPDF
Also see Flying Saucer: https://github.com/flyingsaucerproject/flyingsaucer