Previous | Next | (P-PDF) PDF Accessibility
Topic: RE: Why the last word of a paragraph can not be highlighted when using "IPDDomDocument::SelectText()"? (Via Email)
Conf: (P-PDF) PDF Accessibility, Msg: 142090
From: Duff_Johnson
Date: 11/2/2005 04:16 AM
I suggest you make this Post to the Developers forum rather than this
one...
Duff Johnson
Document Solutions, Inc.
http://www.document-solutions.com
> -----Original Message-----
> From: p-pdf-accessibility Listmanager
> [mailto:p-pdf-accessibility.listmanager@forum.planetpdf.com]
> Sent: Tuesday, November 01, 2005 6:03 PM
> To: Recipients of 'p-pdf-accessibility' suppressed
> Subject: Why the last word of a paragraph can not be
> highlighted when using "IPDDomDocument::SelectText()"?
>
> From: "xiaon"
>
> --------- Planet PDF Forum | http://forum.planetpdf.com ----------
>
> 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.
>
>
>
>
> To reply: mailto:p-pdf-accessibility.142076@forum.planetpdf.com
> To start a new topic: mailto:p-pdf-accessibility@forum.planetpdf.com
> To login: http://forum.planetpdf.com/
> To (un)subscribe:
> mailto:p-pdf-accessibility.list-request@forum.planetpdf.com
>
> --------------------------------------------
> Nitro PDF Professional. PDF for the people. PDF for business.
>
> Now you have a choice! Nitro PDF Professional is a
> cost-effective, fully-featured PDF creation and editing tool
> for everyone.
>
> Buy now for $99.
> http://www.nitropdf.com/professional
> --------------------------------------------
>
>
>