Skip to content

PDF viewer: bring back the bookmarks (outline) panel #729

Done

Description

@tannerpolley

PDFs opened in the right panel used to show the document's bookmarks (outline). The fresh fork lost them.

The old fork's version, at tag release/v2.12.204, came from commit afa56d1f30 "feat(web): show PDF contents". It had:

  • resolvePdfOutline, currentPdfSection and visiblePdfOutline in apps/web/src/components/files/pdfLayout.ts;
  • a "Bookmarks" toggle in the viewer toolbar, shown only when the PDF has an outline and open by default;
  • a collapsible bookmarks tree that jumps to the page and highlights the current section;
  • tests, with outline.fixture.pdf.

Port it onto the current PdfViewer.tsx and pdfLayout.ts on main, keeping today's viewer structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions