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.

Thu Sep 12, 2024 2:16 pm

Hello, I'm using Spire.PDF ver 10.7.21 for C#.
For search text I'm using the following code fragment:

PdfTextFinder finder = new PdfTextFinder(page);
finder.Options.Parameter = TextFindParameter.WholeWord;
List<PdfTextFragment> finds = finder.Find(word);

foreach (PdfTextFragment fragment in finds)
{
fragment.HighLight(Color.Green)
}

For the vertical text - Bound of founded fragments 0 Width.
As the result code fragment.HighLight(Color.Green) works incorrectly.

windsurfer_ua
 
Posts: 2
Joined: Sat Dec 31, 2022 5:33 pm

Fri Sep 13, 2024 8:48 am

Hello,

Thanks for your inquiry. I simulated a PDF document with vertical text content and tested it using the following code, and the results showed that everything was normal. In order to help us reproduce your problem, please provide us with your input PDF document for investigation. You can upload here or send it to us via email( support@e-iceblue.com ). Thank you in advance.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 277
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.PDF