Document link annotation in Flutter PDF Viewer (SfPdfViewer)

20 Dec 20241 minute to read

By default, the SfPdfViewer allows you to navigate to the desired topic or position by tapping its document link annotation in the table of contents in a PDF document.

You can enable or disable the navigation of document link annotation using the enableDocumentLinkAnnotation property. The following code example explains the same.

@override
Widget build(BuildContext context) {
  return Scaffold(
      body: SfPdfViewer.network(
              'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
              enableDocumentLinkAnnotation: false));
}