Programatically disable edit preferences

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

m.holik
User
Posts: 21
Joined: Tue Dec 20, 2011 5:47 pm

Programatically disable edit preferences

Post by m.holik »

Greetings - Is there a way to programatically set the edit-preferences-general-documents layout to "Single Document" and disable the documents layout? Additionally, can we programatically disable the edit-preferences-performance memory usage and thread usage sections. I know I can disable the entire edit-preferences but we would really like to have this greater granularity. Thank you.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Programatically disable edit preferences

Post by Vasyl - PDF-XChange »

Hi, m.holik
Greetings - Is there a way to programatically set the edit-preferences-general-documents layout to "Single Document" and disable the documents layout?
You may set it by:

Code: Select all

pdfViewer.SetProperty("PageDisplay.DefaultLayout", "Single", 0);
pdfViewer.SetProperty("Documents.RestoreLastPageDisp", "false", 0);
You cannot disable this feature in preferences dialog, but you can disable it on the toolbars/menus by:

Code: Select all

pdfViewer.SetProperty("Commands["SinglePage"].State", "offline", 0);
pdfViewer.SetProperty("Commands["Continuous"].State", "offline", 0);
pdfViewer.SetProperty("Commands["Facing"].State", "offline", 0);
pdfViewer.SetProperty("Commands["ContinuousFacing"].State", "offline", 0);
I know I can disable the entire edit-preferences but we would really like to have this greater granularity.
Currently you cannot customize our preferences dialog as of now - but you will be able to do it in the next 'Major' upgrade release - version V3.

HTH
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.
m.holik
User
Posts: 21
Joined: Tue Dec 20, 2011 5:47 pm

Re: Programatically disable edit preferences

Post by m.holik »

OK. Thanks for the quick response. Do you have an idea when the next version will be available with the ability to customize the preferences dialog? Cheers
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7362
Joined: Wed Mar 25, 2009 10:37 pm

Re: Programatically disable edit preferences

Post by Paul - PDF-XChange »

Hi m.holik,
Currently you cannot customize our preferences dialog as of now - but you will be able to do it in the next 'Major' upgrade release - version V3.
We have a firm release date for this as May 31st this year.

hth
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Programatically disable edit preferences

Post by John - Tracker Supp »

Hi,

there is slight correction to that date - the SDK version will follow a month or so later than the end user release date of 31st May, see here;

https://www.pdf-xchange.com/company ... s/view/111

Thanks
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.

Best regards
Tracker Support
http://www.tracker-software.com