Skip to content

Add Acrobat-style PDF bookmarks navigation - #1

Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
copilot/pdf-viewer-toc-navigation
Sep 9, 2026
Merged

Add Acrobat-style PDF bookmarks navigation#1
Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
copilot/pdf-viewer-toc-navigation

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Adds Acrobat Reader-style table-of-contents navigation to the PDF viewer.

What changed

  • Extract the PDF /Outlines tree through pdf_oxide and publish it as a nested Bookmarks pane
  • Clicking a bookmark seeks to that page; View → Bookmarks (Ctrl+B) shows or hides the pane
  • Outline is republished only when the document path changes so TreeView expansion survives paging
  • Sample PDF now includes a small bookmark tree; smoke test jumps via TOC entries

Verification

  • cargo test --locked in apps/pdf-viewer (sample + [MS-RDPBCGR].pdf when present)
  • Windows portable bundle build
  • STA UI Automation smoke:
    • sample PDF: Sample section 2 → page 2
    • C:\Users\mamoreau\Downloads\[MS-RDPBCGR].pdf: 1 Introduction → page 17 (444-page spec, 621 bookmarks)

Read the document /Outlines tree into a nested Bookmarks pane, jump to the
destination page on click, and keep expansion while paging. Verified with the
sample PDF and [MS-RDPBCGR].
@mamoreau-devolutions
Marc-André Moreau (mamoreau-devolutions) deleted the copilot/pdf-viewer-toc-navigation branch September 9, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant