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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - To highlight searched text using ExtractFilePageTe
  FAQ FAQ  Forum Search   Register Register  Login Login

To highlight searched text using ExtractFilePageTe

 Post Reply Post Reply
Author
Message
ssivasankaran View Drop Down
Beginner
Beginner


Joined: 28 Jun 16
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote ssivasankaran Quote  Post ReplyReply Direct Link To This Post Topic: To highlight searched text using ExtractFilePageTe
    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?


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store