Disable editing PDF in PDF-Xchange viewer in asp.net

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

muralidhar
User
Posts: 46
Joined: Tue Nov 30, 2010 9:07 am

Disable editing PDF in PDF-Xchange viewer in asp.net

Post by muralidhar »

Hi All,

In my asp.net application, i am using PDF-Xchange viewer activex control to display pdf files in a webpage. User can modify the pdf by adding notes, stamps etc and can delete or add pages from it. All these can be achived just by right clicking on the viewer and by selecting apropriate options.

but, in some cases i want to restrict user and not to allow any of modifications.

Can we do that in viewer???

Please advice me.

Thanks in advance.

Regards,
Murali.
Regards,
Muralidhar.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Disable editing PDF in PDF-Xchange viewer in asp.net

Post by Stefan - PDF-XChange »

Hello Murali,

You can disable pretty much any command in the Viewer AX.
Please take a look at sections:
3.5 How to Disable a Command?
and
2.2.2.2.1 Command List
In the Viewr AX Manual for further details.

Best,
Stefan
muralidhar
User
Posts: 46
Joined: Tue Nov 30, 2010 9:07 am

Re: Disable editing PDF in PDF-Xchange viewer in asp.net

Post by muralidhar »

Hi Stefan,
Thank you for the reply.

i have gone through it.

As of now, i am not providing any menus, tool bars for viewer control. If user wants to do any thing with the PDF, then he has right click on the viewer and has to select the appropriate funciton. I just want to disable right click on viewer.

is there any way to disable right click on the viewer??

please help me.

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

Re: Disable editing PDF in PDF-Xchange viewer in asp.net

Post by Vasyl - PDF-XChange »

Hi, muralidhar.

Use for this:

Code: Select all

ctrl.SetProperty("General.DenyAllContextMenus", "true", 0);
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.