Spire.PDFViewer 8.2.6 adds support for “Find Previous” and “Find Next” functions

Spire.PDFViewer 8.2.6 adds support for “Find Previous” and “Find Next” functions

2025-10-31 08:26:33

We’re pleased to announce the release of Spire.PDFViewer 8.2.6. This version adds support for the “Find Previous” and “Find Next” functions in Form, WPF, and MAUI. In addition, the method pdfDocumentViewer1.SearchText() has been deprecated and replaced with pdfDocumentViewer1.Find(). More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDFVIEWER-616 Added support for “Find Previous” and “Find Next” functionsin Form, WPF, and MAUI. The pdfDocumentViewer1.SearchText() method has been deprecated and replaced with pdfDocumentViewer1.Find().
private void Form1_Load(object sender, EventArgs e)
        {
            string pdfDoc = @"test.pdf";
            if (File.Exists(pdfDoc))
            {
                this.pdfDocumentViewer1.LoadFromFile(pdfDoc);
                this.pdfDocumentViewer1.Find("FindedText", Color.Empty);
            }
        }
        private void before_Click(object sender, EventArgs e)
        {
            this.pdfDocumentViewer1.FindPrevious();
        }

        private void next_Click(object sender, EventArgs e)
        {
            this.pdfDocumentViewer1.FindNext();
        }
Click the link to get Spire.PDFViewer 8.2.6:
More information of Spire.PDFViewer new release or hotfix: