Spire.PDFViewer 8.2.6 现已正式发布。该版本在Form、WPF和MAUI新增了“查找上一个”和“查找下一个”功能。同时,pdfDocumentViewer1.SearchText() 方法已被声明为旧方法,本版本中使用 pdfDocumentViewer1.Find() 方法替代。详情如下。 新功能: 在Form、WPF和MAUI新增“查找上一个”和“查找下一个”功能。同时 pdfDocumentViewer1.SearchText() 方法已弃用,使用 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…