Need to get properties of selected text

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

ugradedeveloper
User
Posts: 223
Joined: Wed Aug 22, 2007 4:40 pm

Need to get properties of selected text

Post by ugradedeveloper »

My users sometimes need to identify the font properties of text in a document. I have explained to them how to do this, but there are several steps in the process they find difficult to remember... for example the need to switch from the Hand tool to the Select Tool (most of them aren't even aware of the Select Tool)... then once you select the text and bring up the Text Properties dialog, you need to choose the Formatting category since the Content category is first visible by default... then you need to expand the information view by clicking the little plus-sign (not sure what the official name for this element is) next to the green pin icon in order to view the information.

I would like to create a simplified method for my users to find the font, font size etc. for a given text selection. I don't believe it is possible to add custom menu items to the context menu, so I was thinking of adding a menu in my UI that would cause the program to display the text properties of the currently selected text. However, I don't know how to get this information using the SDK. I am aware of "GetAllSelectedText" but this returns the text itself, not information about properties of that text.

I would appreciate any suggestions.
User avatar
Chris - PDF-XChange
Site Admin
Posts: 798
Joined: Tue Apr 14, 2009 11:33 pm

Re: Need to get properties of selected text

Post by Chris - PDF-XChange »

Hi ugradedeveloper,

I'll get the dev team to input but it may be that you need the extended functionality of using JavaScript to get those properties of the text selection. Have a look in here:

http://www.adobe.com/devnet/acrobat/pdf ... erence.pdf

Hope that helps,

Chris
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.


Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Need to get properties of selected text

Post by Corwin - Tracker Sup »

No, there is no way to do this in current realization.
User avatar
Chris - PDF-XChange
Site Admin
Posts: 798
Joined: Tue Apr 14, 2009 11:33 pm

Re: Need to get properties of selected text

Post by Chris - PDF-XChange »

Thanks for the input Corwin, I wasn't sure.

Chris
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.


Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
ugradedeveloper
User
Posts: 223
Joined: Wed Aug 22, 2007 4:40 pm

Re: Need to get properties of selected text

Post by ugradedeveloper »

Corwin - Tracker Sup wrote:No, there is no way to do this in current realization.
OK, then, I'll just keep on working to educate my users.

Thanks.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Need to get properties of selected text

Post by Vasyl - PDF-XChange »

ugradedeveloper wrote:...
I would like to create a simplified method for my users to find the font, font size etc. for a given text selection. I don't believe it is possible to add custom menu items to the context menu, so I was thinking of adding a menu in my UI that would cause the program to display the text properties of the currently selected text. However, I don't know how to get this information using the SDK. I am aware of "GetAllSelectedText" but this returns the text itself, not information about properties of that text.
a Feature for programmatically obtaining the text properties can be added in the near future. Possibly in the build 2.0.42.4(5).
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.