Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
To highlight searched text using ExtractFilePageTe |
Post Reply |
Author | |
ssivasankaran
Beginner Joined: 28 Jun 16 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 25 Jul 16 at 7:30AM |
I have posted my issue and the reference number is
#27537. Any update on this reference case?
The following issue i have posted in the above reference number. I want to search a group of words using option 3 and i want to highlight the text. I used the following code, but it does the highlight the exact words. qp.SelectPage(pageNo); nLayer = qp.NewContentStream(); qp.SetFillColor(0, 1, 0); //qp.DrawBox(sWordX4, sWordY4, sWordX2 - sWordX1, sWordY3 - sWordY2, 1); #region selection text range double Start, Width; Start = lText.IndexOf(sText); sWordX4 += (Start) * 6;//text start position Width = (sText.Length * 6);//text width qp.DrawBox(sWordX4, sWordY4, Width, sWordY3 - sWordY2, 1); qp.MoveContentStream(nLayer, 1); May i know the calculation for highlight the exact searched words using option 3? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store