Page rotate script not working(not allowed error security settings prevent access to this property)

HI,
I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
nStart = 0;
nEnd = this.numPages - 1;
nRotate = 90;
try
if (this.numPages > 0)
           this.setPageRotations(nStart , nEnd , nRotate)
catch(e)
app.alert("Processing error: "+e)
But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.

OK, so here's what you do:
- Create a new file in a plain-text editor (I recommend Notepad++), and paste this code into it:
safeExecMenuItem = app.trustPropagatorFunction(function(code){
    app.beginPriv();
    app.execMenuItem(code);
    app.endPriv();
mySafeExecMenuItem = app.trustedFunction(function(code){
    app.beginPriv();
    safeExecMenuItem(code);
    app.endPriv();
Close Reader if it was open and then save this file as "MyScripts.js" and place it in the following directory (this is for Windows):
C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Javascripts
If you want it to work in Acrobat as well place the file also under:
C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts
Now to rotate the pages clockwise attach this code to your button (in Acrobat, of course):
mySafeExecMenuItem("RotateCW");
And to rotate them counter-clockwise, use this code:
mySafeExecMenuItem("RotateCCW");
Open your file in Reader and the buttons should rotate the pages when clicked...

Similar Messages

  • Error: security settings prevent acces to this property or method

    Hello everybody,
    I'm facing an error when i open up a portfolio which i've performed some javascript. This script has the function to position over a specific document
    contained in portfolio and  when i open up it through Adobe Reader, it shows me the following error:
    NotAllowedError: Security settings prevent access to this property or method. Collecition.initialDoc:6:Document-level:onOpen
    I checked reader properties in preferences and javascript is allowed.
    How can i resolve this issue?
    Thanks.

    Did you read the documentation of the  property or method?

  • Unable to rotate pdf with script(not allowed error security settings prevent  error)

    I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
    nStart = 0;
    nEnd = this.numPages - 1;
    nRotate = 90;
    try
    if (this.numPages > 0)
               this.setPageRotations(nStart , nEnd , nRotate)
    catch(e)
    app.alert("Processing error: "+e)
    But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.

    I have got it working usig by installing a script on the local machine. Thanks

  • Allowing Global Security Settings for Local Flash Content

    Hi all,
    We have developed one e-learning course for our client. This
    course will be deployed on the CD; that means it will run locally.
    This CD will be dstributed to thousands of users. In this scenario
    I am currently suffering from the Global Security Settings issue as
    this project uses Fscommand to communicate with the javascript. We
    can set the Global Security mannually but it is not feasible to ask
    client to mannaully set the Security Settings to "always" as there
    are thousands of users viewing this course locally.
    I have tried setting "always" value to allowScriptAccess
    property of the Object/embed tag in the html but it does not work
    where the browser Security Settings are kept as "High".(I think
    this is the reason)
    So what will be the workaround for this issue?
    Please reply me if you gone through this problem and found
    any workaround.
    Thanks in advance.

    Hi Popocatepelt,
    Glad to hear that worked for you….
    Local Access Only allows the published SWF file to interact
    with files on the local system, but not on the network. Access
    Network Only lets the published SWF file interact with files and
    resources on the network, but not on the local system.
    For more info take a look at the following
    http://www.adobe.com/products/flashplayer/security/
    For local content:
    http://www.adobe.com/products/flashplayer/articles/localcontent/

  • MySite – My Content Page is not working and giving error for existing customers

    We are using SharePoint 2010 and recently moved to SharePoint 2013. Central Admin run under SP 2013 and Content Db Front End run under SP 2010.
    After migration the MySite – My Content Page is not working and giving error for existing customers (http://mysite.ss.com/_layouts/MySite.aspx?Error=4705).
    New users (after migration) are able access the My Content and adding documents but old users can’t.
    Can anyone help me on the above?

    I think you might be using non claims web app in 2010, if that is the case, you 'd need to convert your existing users to claims users for which you can refer to http://technet.microsoft.com/en-us/library/gg251985(v=office.15).aspx
    to check if your exisiting users are claims or classic users , try 
    get-spuser -web http://mysite.ss.com -limit all
    check in the output if you see the claims GUID in form of user names like i:0#.w|domain\username, if yes, they claims users if you just see Domain\username, you want those users to be converted to calims.
    i'd need more details to be specific about my answer but aforementioned scenario is most common of all, hope this helps, 
    Thanks, Noddy

  • Adobe Flash Player not working. Installen latest version. Get the following: "This website would like to run the following addon: Adobe Flash Player from Adobe System Incorporated." Then asking me to allow it for current or all websites. It doesn´t matter

    Adobe Flash Player not working. Installen latest version. Get the following: "This website would like to run the following addon: Adobe Flash Player from Adobe System Incorporated." Then asking me to allow it for current or all websites. It doesn´t matter how i do this. The pop-up question returns EVERY time. What do i do to solve this issue???

    To give you any useful advice, I'm going to need to know more about your computer and browser:
    https://forums.adobe.com/message/5249945#5249945

  • The little grey camera icon ( IMovie) is not working or allowing me to open my photos. I have no problem inserting video. Just won't let me open my photos. Any ideas?

    The little grey camera icon ( IMovie) is not working or allowing me to open my photos. I have no problem inserting video. Just won't let me open my photos. Any ideas?

    deanfromdouglasville,
    It may help to rebuild your iPhoto Library's database, as detailed in the article linked below.
    iPhoto 6 and later: Rebuilding the iPhoto library
    http://support.apple.com/en-us/HT201769
    Regards,
    Allen

  • Internet Service Not Working, sending 404 error

    Hi,
    I just created an Internet Service pointing to a transaction and I published it but it is not working when I click on Start Service and the browser is opened, I know the servername and the url should be well created cause I delete the service name and change it for webgui and then it works so the hostname and port shoud be ok.
    I can not see it either in the SICF transaction under the ITS path I followed the instructions in the Help Manual but is not working and can´t find why, has somebody done this that can help me out?
    Thanx in Advanced!
    Kind Regards,
    Gerardo J

    Hi Tobias,
    Thank you for the Link, I have followed the steps and published the service in the SE80 Transaction, I checked the settings and are correctly pointing to internal ITS, but after I published the Service I start the SICF transaction and can not find my new Service to activate it, I´m looking in /sap/bc/gui/sap/its  Path wich is the Path I have configured into Internet Transaction Server > Test Tab.
    I really apreciate your help!
    Kind Regards,
    Gerardo J

  • TS1362 I downloaded two cd's last night and I am un able to play some songs cause it tells me I am this computer is unauthorized to play some songs,I did what it said about going to store to get authorized and still will not work,not happy at all!

    I downloaded two cd's last night and I am un able to play some songs cause it tells me I am this computer is unauthorized to play some songs,I did what it said about going to store to get authorized and still will not work,not happy at all!  I NEED HELP OR MY MONEY BACK NOW!

    There seems to be an occasional issue with downloads from the store. They prompt for authorization when they are in fact corrupt/incomplete in some fashion. Try deleting the problem tracks (do not hide from iTunes in the cloud), close iTunes and reopen, go to iTunes Store > Qucklinks > Purchased > Music > Not on this computer. Select a few tracks to download then click the icon that appears at the top-right of the iTunes window.. Untick the box that reads Allow simultaneous downloads. Proceed with the rest of your eligible purchases.
    If you still have a problem use the Report a problem links in your account history to contact the iTunes Store support team.
    tt2

  • Calendar Issues - "Repitition is not working for the item you tried to access"

    I ran into an interesting error when troubleshooting a calendar issue today, wondering if anyone has seen it.
    Exchange 2010 SP2 latest RU, Outlook 2010
    User changes then start time for a recurring meeting, changes in everybody's calendar but hers 9still shows in her calednar as the original start time)
    Logged into OWA to see if her claendar reflected the correct start time there - no, still  shows the old start time.  So I open the meeting, have a quick look, and the following error pops up:
    "Repitition is not working for the item you tried to access.  It's possible either the start or end date are not correct"
    Has anyone seen this error in OWA before?
    TAG

    Hi,
    Please double check whether the updated start time and end time are changed properly in attendees’ calendar. Also confirm whether the updating message is in the organizer’s sent items both in OWA and Outlook.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • My iPhone app store is not  working becuae of my security code

    My iPhone app store is not  working becuae of my security code

    Are you trying to articulate "I forgot my passcode"?  If so: 
    http://support.apple.com/kb/ht1212
    If that doesn't answer your question, please be more specific about your problem.

  • My iPad orientation is not working after the IOS 8 update.  Please fix this bug!

    my iPad air orientation is not working after the IOS8 update.  Can you fix this bug? Thx

    Did you try a reset?
    Restart / Reset
    http://support.apple.com/kb/HT1430

  • My imessage is not working. I went into settings, then messages, and it says my imessage activation is unsuccessful. What do I do to get imessage working again. When I turn it on it sends imessae through my email not my phone number

    My imessage is not working. I went into settings, then messages, and it says my imessage activation is unsuccessful. What do I do to get imessage working again. When I turn it on it sends imessae through my email not my phone number

    It is starting to get a common problem (iMessage), try doing this:
    http://www.imore.com/having-trouble-imessage-or-facetime-ios-7-heres-how-fix-it
    Good Luck

  • My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    Hello Nadersalah,
    It seems you're experiencing multiple issue with your iPhone. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    iPhone Repair and Service - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • Passwords, auto-fill in safari does not work it is enabled in settings, what can do

    passwords, auto-fill in safari does not work it is enabled in settings, what can do

    Private Browsing Off.
    Private Browsing On.

Maybe you are looking for