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.

Sat Aug 03, 2019 6:31 pm

Hello everyone,

i am facing issue of find and highlight text in pdf , the issue is after finding the text the highlight ion is vertical orientation .


pdfDoc.LoadFromFile(@"d:\LocalData\z015266\Desktop\OneDrive_1_30-07-2019\Updated\AA30-AC.PDF");

//PdfTextFind[] result = null;

PdfTextFind[] result = null;
foreach (PdfPageBase page in pdfDoc.Pages)
{
result = page.FindText("F263").Finds;
foreach (PdfTextFind find in result)
{
find.ApplyHighLight();

}


i have used this code for highlight ion , i have attached image after the highlightion.

Yogeshvasu
 
Posts: 2
Joined: Fri May 04, 2018 9:01 am

Sun Aug 04, 2019 2:41 pm

I have got the solution by changing page orientation of width and height , thanks for the support always.

Yogeshvasu
 
Posts: 2
Joined: Fri May 04, 2018 9:01 am

Mon Aug 05, 2019 1:27 am

Hi,

Glad to hear you have managed to solve your issue.
If there is any question while using our product, just feel free to contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.PDF