How to programatically set the font, color, etc.

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

DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

How to programatically set the font, color, etc.

Post by DSSavant »

As the title indicates, how do I set the font, size, color, etc. of the currently selected text within an annotation's text? For example, I use the Typewriter tool, drop some text on the document, highlight it and want it change it. Or the text in a popup note or text tool ...

I know how to bold the currently selected text:

Viewer.DoVerb("", "ExecuteCommand", "33104", out dataOut, 0);

Same with other more simple commands but how do I perform the more complex operations such as changing the font, size, color?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to programatically set the font, color, etc.

Post by Corwin - Tracker Sup »

Hello DSSavant,

I'm afraid that this is not possible in current version. However such features will be available in V3.