Programatically adjust accesibility options?

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

ojsann
User
Posts: 3
Joined: Fri Mar 28, 2014 11:39 am

Programatically adjust accesibility options?

Post by ojsann »

Hi

Is it possible to programmatically manipulate these settings normally found in this menu Edit->Preferences->Accessibility Options:

* Override Document Colors
* Use custom color scheme
* Page background
* Text color
* Line Art (Fill color and stroke color)

I have searched the forum and API doc, but did not find any info about commands/verbs to do this.

Best regards,

//Øyvind Sannerhaugen
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Programatically adjust accesibility options?

Post by Stefan - PDF-XChange »

Hi Øyvind Sannerhaugen,

I don't think those can be controlled via code directly, but if you do set them up in an end user copy of the Viewer, and export the settings to a file, you can then use the
HRESULT LoadSettings(
VARIANT DataIn
);
ViewerAX method to load them as needed.

Regards,
Stefan
ojsann
User
Posts: 3
Joined: Fri Mar 28, 2014 11:39 am

Re: Programatically adjust accesibility options?

Post by ojsann »

OK, thank you for your reply, I will try this :)
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Programatically adjust accesibility options?

Post by Stefan - PDF-XChange »

Hi Øyvind,

Actually if you do not need to change the accessibility options runtime you might need to load the settings just once - and then execute the "Override Document Colors" command - ID 36498 to toggle the accessibility settings on/off as needed.

Regards,
Stefan