HelpBot Assistant

How can I help you?

Table of contents navigation in SfPdfViewer

12 Feb 20261 minute to read

Use the table of contents (TOC) to jump to sections within a PDF. Each entry maps to a location in the document; selecting one navigates to that destination.

Table of contents navigation in Blazor PDF Viewer

Enable or disable hyperlink and TOC navigation by setting the EnableHyperlink property. TOC entries are parsed from the PDF; if the document has no TOC, no entries appear.

@using Syncfusion.Blazor.SfPdfViewer

<SfPdfViewer2 Height="100%" Width="100%" DocumentPath="@DocumentPath" EnableHyperlink="true" />

@code{
    public string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succinctly.pdf";
}

Control where external hyperlinks open using the HyperlinkOpenState property (for example, a new tab). In-document TOC links always navigate within the viewer.

@using Syncfusion.Blazor.SfPdfViewer

<SfPdfViewer2 Height="100%"
              Width="100%" DocumentPath="@DocumentPath"
              EnableHyperlink="true"
              HyperlinkOpenState="LinkTarget.NewTab" />

@code{
    public string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succinctly.pdf";
}

See also