Print Page | Close Window

To highlight searched text using ExtractFilePageTe

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3360
Printed Date: 04 May 24 at 12:52PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: To highlight searched text using ExtractFilePageTe
Posted By: ssivasankaran
Subject: To highlight searched text using ExtractFilePageTe
Date 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?





Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk