---
title: "What’s New in 2020 Volume 4: PDF Viewer Flutter"
published_at: "2020-12-28T12:52:58+00:00"
modified_at: "2025-03-20T09:59:34+00:00"
url: "https://www.syncfusion.com/blogs/post/whats-new-in-2020-volume-4-pdf-viewer-flutter"
excerpt: "I’m very excited to share with you the new features and enhancements included in our Flutter PDF Viewer widget: Text selection Text search Document link annotation These features are included in Flutter PDF Viewer in the 2020 Volume 4 release...."
taxonomy_category:
  - "Desktop"
  - "Flutter"
  - "Mobile"
  - "PDF"
  - "PDF viewer"
  - "Syncfusion"
  - "UI"
  - "Web"
  - "What's new"
taxonomy_post_tag:
  - "Android"
  - "Flutter"
  - "iOS"
  - "Mobile"
  - "PDF"
  - "PDF Viewer"
  - "Web"
  - "What's New"
---

# What’s New in 2020 Volume 4: PDF Viewer Flutter

[Ramkumar Ravy](https://www.syncfusion.com/blogs/author/ramkumarr)

![What's New in 2020 Volume 4 : PDF Viewer Flutter](https://www.syncfusion.com/blogs/wp-content/uploads/2020/12/Whats-New-in-2020-Volume-4-PDF-Viewer-Flutter.png)


I’m very excited to share with you the new features and enhancements included in our [Flutter PDF Viewer widget](https://www.syncfusion.com/flutter-widgets/flutter-pdf-viewer)
:

- [Text selection](#text-selection)
- [Text search](#text-search)
- [Document link annotation](#documentation-link-annotation)

These features are included in Flutter PDF Viewer in the [2020 Volume 4 release](https://www.syncfusion.com/forums/160733/essential-studio-2020-volume-4-release-v18-4-0-30-is-available-for-download)
.

## Text selection

The [PDF Viewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html)
 now allows you to select text in a PDF page by long pressing on it, which in turn displays selection handles or bubbles at the top-left and bottom-right corners. Then, you can use the left handle to extend the text selection at the left and top, and the right handle to extend the selection to the right and bottom.

![Text selection in Flutter PDF Viewer](https://www.syncfusion.com/blogs/wp-content/uploads/2020/12/text-selection.png)

Text selection in Flutter PDF Viewer

By default, text selection will be enabled in the PDF Viewer. You can disable the text selection using the [enableTextSelection](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/enableTextSelection.html)
 property. The following code example explains this.

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

The PDF Viewer text selection also includes the following functionalities,

- Customizing the text selection and its handle color,
- Obtaining the selected text programmatically.

To learn more about text selection and its features, please refer to our [text selection](https://help.syncfusion.com/flutter/pdf-viewer/text-selection)
 documentation page.

## Text search

The [PDF Viewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html)
 now allows you to find instances of text in a PDF document and navigate to each of its occurrences. You can perform the text search and retrieve results using the [searchText](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/PdfViewerController/searchText.html)
 controller method. It takes the text to be searched and [TextSearchOption](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/TextSearchOption.html)
 as parameters. This method searches for the text and highlights all instances of it in the document. This method also returns a [PdfTextSearchResult](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/PdfTextSearchResult-class.html)
 object holding the result values such as total instance count and current highlighted instance index.

The PDF Viewer text search feature also includes the following functionalities,

- Navigating to different matches of searched text
- Cancelling the text search
- Customizing the highlight color of the found instances

To differentiate the current instance from the other instances, the current text instance is highlighted in a dark color, while the rest of the instances will be light. The following code example explains how to perform the text search and retrieve the results.

```
PdfViewerController _pdfViewerController;
PdfTextSearchResult _searchResult;

@override
void initState() {
  _pdfViewerController = PdfViewerController();
  super.initState();
}
@override
Widget build(BuildContext context) {
  return Scaffold(
      appBar: AppBar(
        title: Text('Syncfusion Flutter PDF Viewer'),
        actions: <Widget>[
          IconButton(
            icon: Icon(
              Icons.search,
              color: Colors.white,
            ),
            onPressed: () async {
              _searchResult = await _pdfViewerController?.searchText('the',
                  searchOption: TextSearchOption.caseSensitive); 
              print('Total instance count: ${_searchResult.totalInstanceCount}');
            },
          ),                  ],
      ),
      body: SfPdfViewer.network(
          'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
          controller:_pdfViewerController));
}
```

With the help of options available in the [PDF Viewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html)
 text search, you can create and implement your own search toolbar. [Here](https://help.syncfusion.com/flutter/pdf-viewer/text-search#how-to-create-and-display-a-custom-search-toolbar-with-the-search-features)
, you can find the example code snippet to create and display a custom search toolbar with search features. The following reference image is the executed example code snippet.

![Text search in Flutter PDF Viewer](https://www.syncfusion.com/blogs/wp-content/uploads/2020/12/text-search.png)

Text search in Flutter PDF Viewer

To learn more about text search and its features, please refer to our [documentation page](https://help.syncfusion.com/flutter/pdf-viewer/text-search)
.

## Document link annotation

The [PDF Viewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html)
 allows you to navigate to the desired topic or position by tapping on a document link annotation in the table of contents in a PDF document. By default, navigation using the document link annotation will be enabled. You can disable the navigation using the [enableDocumentLinkAnnotation](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/enableDocumentLinkAnnotation.html)
 property. The following code example explains this.

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

## Conclusion

I hope you enjoyed this blog about the new features of the [Syncfusion Flutter PDF Viewer](https://www.syncfusion.com/flutter-widgets/flutter-pdf-viewer)
 available in the [2020 Volume 4 release](https://www.syncfusion.com/forums/160733/essential-studio-2020-volume-4-release-v18-4-0-30-is-available-for-download)
. You can explore the [user guide](https://help.syncfusion.com/flutter/pdf-viewer/overview)
 of PDF Viewer, and you can also check out our samples in this [GitHub location](https://github.com/syncfusion/flutter-examples)
. In addition, you can download our demo app from [Google Play](https://play.google.com/store/apps/details?id=com.syncfusion.flutter.examples&hl=en)
 and the [App Store](https://apps.apple.com/in/app/syncfusion-flutter-ui-widgets/id1475231341)
.

If you are an existing Syncfusion user, please download the latest version of Essential Studio® from the [License & Downloads](https://www.syncfusion.com/account/downloads)
 page and try the new features for yourself. If you aren’t a customer yet, you can try our 30-day [free trial](https://www.syncfusion.com/downloads)
 to check out these features.

Also, if you wish to send us feedback or would like to ask any questions, please feel free to post them in the comments section below, or contact us through our [support forum](https://www.syncfusion.com/forums)
, [Direct-Trac,](https://www.syncfusion.com/support/directtrac/)
 or [feedback portal](https://www.syncfusion.com/feedback/)
. We are happy to assist you!

## Related Blogs

If you liked this post, we think you will also enjoy the following:

- [Ebook] [Flutter Succinctly](https://www.syncfusion.com/ebooks/flutter-succinctly)
- [Blog] [Introducing Syncfusion PDF Viewer Widget for Flutter](https://www.syncfusion.com/blogs/post/introducing-syncfusion-pdf-viewer-widget-for-flutter.aspx)
