Export headings as bookmarks in PDF export

Use case or problem

When exporting large markdown files, it’s easier to navigated the PDF file with bookmarks.

Proposed solution

Use headings to properly create hierarchical bookmarks in the exported PDF file.

Current workaround (optional)

Using Typora to export to PDF which generates the bookmarks from headings. Downside is that images and block embeddings are not exported properly.

8 Likes

I don’t use the pdf export often, but +1.

1 Like

I use pdf export heavily. Tried using pandoc plugin, but it is not rendering pdf correctly. I generate pretty long notes with dataview plugin, and need bookmarks for headings to navigate the generate pdf easily.

I use PDFs a lot and I think this feature would be very helpful.

3 Likes

I use pdf heavily, strongly recommend add this function

3 Likes

This is a quite useful feature.

My work around is using pandoc.

cd BASE_DIR_OF_INPUT_OBSIDIAN_MD_PATH
pandoc --pdf-engine=xelatex -s -o OUTPUT_PATH INPUT_OBSIDIAN_MD_PATH

The syntax of image should use this format.

![](../assets/media/sceenshoot_20221115091617.png){ width=30% height=30%}

I hope this function can be implemented as soon as possible. I really need this function for pdf export.

I agree, it would be great to have headings in the PDF that correspond with the headings in the content.