Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) PDF Accessibility


Topic: Why the last word of a paragraph can not be highlighted when using "IPDDomDocument::SelectText()"?
Conf: (P-PDF) PDF Accessibility, Msg: 142076
From: xiaon
Date: 11/1/2005 11:00 PM

I met a strange problem when I tried to use PDF DOM's "IPDDomDocument::SelectText()" method.

This method is defined as following:

HRESULT SelectText(IPDDomWord *startID,
long startCharIndex,
IPDDomWord *stopID,
long stopCharIndex);

If I want to highlight the string of "This is a common approach for acquiring a progress monitor",
after I filled the first argument with the "IPDDomWord" pointer of "This", the third argument
with the "IPDDomWord" pointer of "monitor", and filled the second and fourth arguments with any random
long type value, the result was abnormal. It turned out to be "This is a common approach for acquiring
a progress" was highlighted, however, the last word "monitor" was not highlighted.

Was the way that I used to call the "SelectText" method wrong?

Is there anyone who knows why or some detailed usage rule about this method?

Any message will be helpful, thanks.


PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: Office Feng Shui

Finding your workspace is making you tense? Perhaps you could consider consulting a Feng Shui expert -- Canon Europe did, according to a recent press release. The company has been generous enough to offer the expert's report on reducing office stress via Feng Shui as a free PDF download.

July 31, 2008
Search Planet PDF
more searching options...




PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

FileOpen PDFNet SDK: PDF Component. Cross-platform PDF library

PDF Converter: Create, Convert PDF to Word/Excel Solid Documents - PDF to Word Converter

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

Adobe Acrobat & PDF Central Conference 2008

September 23 - 25, 2008 - Minneapolis, Minnesota

Dedicated exclusively to Adobe Acrobat and PDF, the 2008 Adobe Acrobat and PDF Central Conference presents a unique opportunity to broaden your understanding of how PDF technologies can positively affect your business productivity.

Discover the new features of Acrobat 9 and expand your knowledge of PDF technology. Participate in various educational seminars, such as Acrobat Form Fundamentals, Acrobat Security, Creating PDF Portfolios, Scripting with the new Flash Annotation in PDF, JavaScript for Acrobat, and much more.

PDF Store Categories