PDF export : create bookmarks in pdf

Hello,

when exporting pages to pdf using the PDF export plugin, is it possible to generate bookmarks in the pdf based on the title levels for example ? Something analogue to the bookmark created when we create a pdf from Word. This is very convenient for the navigation in a long document.

Regards,

Alain

I think what you’re describing is what issue XWIKI-23380 is about - so no, it’s currently not possible.

1 Like

Thanks. Indeed it seems that headless chrome can’t create PDFs with bookmarks.
I found a workaround using the Python library fitz (PyMuPDF). It requires to parse the pdf file, detect the titles (I have to create a logic there for that), add the bookmarks and save to a new pdf. The links are not broken.
I tried Spire.PDF who does the same but had issues with it.
Not ideal but if a logic in the titles can be detected, it’s a kind of solution.