# PDF Viewer - Table of Contents (TOC) expansion icon displays incorrectly when content is not expanded

**URL:** <https://forum.obsidian.md/t/pdf-viewer-table-of-contents-toc-expansion-icon-displays-incorrectly-when-content-is-not-expanded/105127>\
**Category:** Bug reports\
**Tags:** outline, pdf-viewer, repro\
**Created:** [September 2, 2025, 11:20am UTC](https://forum.obsidian.md/t/pdf-viewer-table-of-contents-toc-expansion-icon-displays-incorrectly-when-content-is-not-expanded/105127 "2025-09-02T11:20:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yang0119](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/5e9695/32.png) [@yang0119](https://forum.obsidian.md/u/yang0119)\
**Post date:** [September 2, 2025, 11:20am UTC](https://forum.obsidian.md/t/pdf-viewer-table-of-contents-toc-expansion-icon-displays-incorrectly-when-content-is-not-expanded/105127/1 "2025-09-02T11:20:45Z")

</div>

### Steps to reproduce

1. Open Obsidian.
2. Right-click a PDF file in the file explorer.
3. Ensure the PDF has a table of contents (TOC).
4. Open the “Table of contents” pane if not already visible.

### Did you follow the troubleshooting guide? [Y/N]

Y

### Expected result

When a section in the PDF’s table of contents has sub-items but is currently in a collapsed state (i.e., its sub-items are not visible), the expansion icon (the arrow) should indicate a collapsed state (e.g., a right-pointing arrow or a triangle pointing right). When clicked, it should change to an expanded state icon (e.g., a down-pointing arrow or a triangle pointing down) and reveal the sub-items.

### Actual result

The expansion icon (a down-pointing arrow) for each top-level (and potentially other un-expanded) section in the PDF table of contents consistently displays as “expanded” by default, even when the actual sub-items of that section are not visible. The sub-items only appear after I click the icon.

### Additional information

The attached screenshot visually demonstrates the issue: the down-pointing arrows suggest the sections are already expanded, but their sub-items are not visible until clicked. This creates a minor UI inconsistency and makes it less intuitive to understand which sections are currently expanded or collapsed.

 ![image](https://forum.obsidian.md/uploads/default/original/3X/c/0/c04095cb6bd70bcbfb69499c33c209d4c012a17e.jpeg)  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/d/b/db26816dc7540172f6f865ee1abcbdb2243040b9.jpeg)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [September 2, 2025, 12:52pm UTC](https://forum.obsidian.md/t/pdf-viewer-table-of-contents-toc-expansion-icon-displays-incorrectly-when-content-is-not-expanded/105127/2 "2025-09-02T12:52:34Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![yang0119](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/5e9695/32.png) [@yang0119](https://forum.obsidian.md/u/yang0119)\
**Post date:** [January 17, 2026, 2:58am UTC](https://forum.obsidian.md/t/pdf-viewer-table-of-contents-toc-expansion-icon-displays-incorrectly-when-content-is-not-expanded/105127/4 "2026-01-17T02:58:57Z")

</div>

Hello, I still don’t see this issue fixed in the latest version. This is just a simple bug; please fix it as soon as possible.
