Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sun Sep 10, 2017 6:02 am

Im using pdfDocumentViewer1 only without Spire.PDF I want to access pages within the viewer without create a new PDFDocuement object and load file and then save it on desk and then load it again to the viewer. this code from another post


PdfTextFind[] result = null;
foreach (Spire.Pdf.PdfPageBase page in pdf.Pages)
{
result = page.FindText(txtSearch.Text).Finds;
foreach (PdfTextFind find in result)
{
find.ApplyHighLight();
}
}
pdf.SaveToFile("result.pdf");
pdfDocumentViewer1.LoadFromFile("result.pdf");



Please advice

abuhelweh
 
Posts: 3
Joined: Fri Jun 16, 2017 9:47 pm

Mon Sep 11, 2017 2:32 am

Dear Hassan,

Thanks for your inquiry.
Sorry that the searching function is only supported in PdfViewer, and the PdfDocumentViewer doesn't support it now. But we have added this as new feature into our schedule. We will let you know when it is implemented.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Sep 26, 2017 2:48 am

Hi Hassan,

Glad to inform that the searching function is available in PDFDocumentViewer now, please download the hotfix Spire.PDFViewer Pack(Hotfix) Version:2.12.34 and use the code below to have a test.
Code: Select all
    pdfDocumentViewer.SearchText()

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Sat Sep 30, 2017 7:32 am

Hi Hassan,

Did you try the new feature and the hotfix ? Could you please give us some feedback ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF

cron