How can I disable toolbar features when opening a file in a browser?

Hi,
    I am trying to create an application that loads a pdf in a browser and want to disable certain toolbar features so that the user is incapable of ever seeing them. I know how to do this manually by going to the toolbar settings, but the user can easily enable them as well doing the same process. How can I code this to enable and disable features of adobe reader without having to change the registry keys or by doing them manually? Is there a way to do this? Is there a command that I can type in the command prompt to do this? I am working in C++ on a windows app.
Basically, I am asking how to edit any/all Edit>Preferences by coding it or through command prompt when launching the pdf without having to do it manually.
    Much help would be appreciated. Thank you!

If you are using URLConnection
myURLConnection.setRequestProperty("pragma:","no-cache"Actually, the 'pragma' header is an HTP 1.0 (old) concept. The one for HTTP 1.1 is 'Cache-Control'. That said, you should always use both to support old/new browsers.
You could also use the following headers :
Expires, must-revalidate, proxy-revalidate etc...
You could also implement a getLastModified() method in your servlet, which returns the time (as a long) at which the content was last changed. The server could then intercept 'If-Modified-Since' requests.
Keep in mind that, because of several notorious browser bugs ( http://www.web-caching.com/browserbugs.html ), it can be difficult to effectively turn off caching across the board.

Similar Messages

  • How can you disable Adobe Reader from opening a file right after you save it as a pdf?

    Hi,
    I often save word files as pdf files and right after I save them as pdfs it opens the file in adobe reader. How can I disable this?
    Thanks

    Ahh, but that's the design function of any PDF viewer add-on to a browser.
    To avoid -- Use the browser feature that saves a file to the local machine.
    Then open the file with the appropriate application.
    If your machine/device does not support this then you'd want to change to one that supports what you want eh.
    Be well...

  • How can i disable auto playback when importing music files in itunes 10?

    when i downlaod music files that get imported to itunes it automatically plays the music in the background which interupts what i am currently listening to. how can this feature be disabled as it was possible in the past. i have a macbook air and running iTunes 10.

    I am having this same issue when downloading audiobooks from Audible.
    After the download completes in Safari, it imports into iTunes which automatically starts to play the file.
    Damned inconvinent when I am downloading multiple books for work and I am away from my Mac doing other stuff. I have to return to the Mac to manually stop the book each time.

  • How can I disable the feature that opens a new tab everytime I enter a search request?

    I have Firefox 4.0.1 installed on my laptop, using Windows 7. Whenever I enter in a search query into the search bar and hit enter the search results come up on a different tab. If I then search for something from that new tab another tab opens. As you can plainly see, it doesn't take too long before you have multiple tabs open, thus slowing down the computer. Granted the easy answer is to close the old tabs as I go along, but I swear on older versions of Firefox this "feature" could be turned off; I find it highly annoying to have to constantly click the older tabs from which I searched from.

    Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify default values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    * http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    *http://kb.mozillazine.org/browser.startup.homepage_override.mstone

  • I have a new MacBook Pro. I am using firefox, but my homepage is set to google. Firefox constantly keeps opening new tabs to its own homepage by itself. How can I disable this feature?

    I have a new MacBook Pro. I am using firefox version 7.0.1, but my homepage is set to google. Firefox constantly keeps opening new tabs to its own homepage by itself. How can I disable this feature.

    Hi [email protected]
    If you have set Google to be your homepage, that should be the first one to appear. Are you seeing the Firefox home page when you open new tabs? New tabs should be blank by default. The only reason I've seen Firefox open new tabs with Firefox data on it is after an upgrade of the product.

  • How can we disable info area when we're opening query ??

    Dear All,
    It's regarding authorization in query designer.
    I've already created roles .. So if user's opening the query, they can see their authorized query in roles group.
    But ..
    When they're opening the query, they also can search the query by info-area. When they search the query by info-area, they can see all query.
    My question is:
    1. How can we disable the feature to seek the report by info-area ??
    2. Do you know what the authorization is for maintaining part ??
    Regards,
    Niel.

    Hi Niel
    You can try the S_RS_FOLD authorization object.
    Definition
    With this authorization object, you can deactivate the general view of the 'InfoArea' folder. Then only the favorites and roles appear in the BEx open dialog for queries. The view of the InfoAreas is hidden.
    Defined fields
    The object contains a field:
    SUP_FOLDER:  Hide the file view if the field is set to 'True' ('X'). If both 'True' and 'False' is selected ('All Values'), the value 'False' is valid, meaning that the 'InfoAreas' file is not hidden.
    Hope this helps.
    Regards
    Gaurav
    Edited by: Gaurav on Oct 13, 2008 6:01 AM

  • HT201269 How can I disable the code when signing on to my phone?

    How can I disable the code when signing on to my phone.  This is very annoying.

    Settings>General>Passcode Lock...enter your passcode, then: Turn Passcode Off.

  • HT201317 How can I disable picture frame when in locked position?

    How can I disable picture frame when in locked position?

    Go to Settings>General>Passcode Lock, enter your passcode, then turn Picture Frame to Off.

  • How can I disable the automatic hiding of known file attachments, and why are always about 10 internet pages where I have to download something if i use firefo

    How can I disable the automatic hiding of known file attachments, and why are always about 10 internet pages where I have to download something when I use mozila firefox?
    Windows Computer

    1) If you are talking about the file names on the computer, there is a
    setting to turn off known file types. Open your file browser. Then
    just under the location bar, press '''Tools,''' then '''Folder Options.'''
    A new window will open. Select '''View.''' Look for
    '''Hide Extensions For Known File Types.'''
    2) Never NEVER '''NEVER''' download anything unless you know what
    it is. If a web site claims it needs to download something, what is it?
    It could be something like the flash player, '''or a virus ! !'''
    Ask questions, or go somewhere else.

  • How can I disable Firefox from automatically opening on system startup on my Mac - unchecking the "open at login" does not work?

    We have Firefox 10.o on our Macbook Pro OS X 10.5.8. I prefer using Firefox as my browser but my husband prefers Safari for now because of a long history of bookmarks and saved information he doesn't have time to re-do. He is tired of Firefox automatically opening when we start up the laptop, and even when we uncheck the "open at login" it still opens at login every time. He is about to uninstall it because of this. How can we disable? It does NOT show up in our account on the Mac OS as an application that starts at login, so we can't disable it there.

    For those of you running Windows, I found this on another site. (Unfortunately, not before getting totally disgusted and switching to chrome.)
    1. click start (or the windows flag button at the bottom left) 2. in the "search programs and files" or the RUN dialog box, enter "msconfig.exe" or "msconfig". 3. That should open the system configuration program. 4. click the "Startup" tab at the top of the opened program. 5. Under the "startup item" column, look for Mozilla firefox. 6. uncheck that one. 7. Click OK or apply. 8. click "exit without restart". 9. you're good to go.

  • HT201365 how can you disable this feature?Don't want to have to use passcode everytime i need to use the devise.

    How can you disable the password feature? Don't want to have to use code every time I need to use the phone.

    goto settings->general->passcode lock->turn passcode off

  • Since updating Firefox as suggested, when I 'save as' a jpeg, it automatically finds the folder and it's always the wrong folder. How can I disable this feature and go back to the original mode where it remains in the folder I choose until I change it?

    For example, I saved a jpeg named 'picasso the guitarist'. I have folders titled A to Z. When I click 'save as' it might open the 'K' folder and I have to manually search the 'P' folder for 'Picasso' and save file. The most irritating thing is, when I 'save as' another jpeg of say 'pieter mother & child' it goes to another folder and does not remain in the 'P' folder, rather it goes to the 'X' folder or some other. This didn't happen before the last upgrade. Can I disable this new 'help' feature that is taking more time than the old version?

    Current Firefox versions remember the download directory based upon the URL, so if the URL changes then the default folder may be chosen if there hasn't been selected a download folder before for that server.
    *[[/questions/889958]]
    *[[/questions/882443]]
    Bug 536503 - Last downloaded-to directory should be remembered on a site-by-site basis
    Firefox 11 will have a workaround by providing a pref (browser.download.lastDir.savePerSite) to disable this feature.

  • Firefox opens all adobe files with firefox web browser. I disabled add-on, but it still does it. How can i disable this feature?

    All adobe files now automatically open in firefox web browser, even when opening them from widows explorer. I want all adobe files to be opened in adobe reader as a default. Yet I disable the plugin Adobe Acrobat 11.0.9.29 and it still does this. I can't use firefox this way.

    When you open a PDF file that you saved to your computer, by double-clicking the file, does it open with Adobe Reader or with Firefox?
    If the PDF file opens with Adobe Reader then follow the instructions in [[How to disable the built-in PDF viewer and use another viewer]] to set Adobe Reader as the application for Portable Document Format (PDF) in your Firefox Options for Applications.
    If the PDF file opens in Firefox when you open it from your hard drive, even though you have Firefox 33 installed, try uninstalling and reinstalling Firefox:
    #Download the latest Firefox version (currently 33.1.1) from [https://www.mozilla.org mozilla.org] and save the setup file to your computer.
    #*Note: You can use [https://www.mozilla.org/firefox/new/?scene=2#download-fx this link] for the online (stub) installer or choose the full installer for your operating system and language from [https://www.mozilla.org/firefox/all/ this page].
    #After the download finishes, close all Firefox windows (or open the Firefox menu [[Image:New Fx Menu]] and click the Exit button [[Image:Close 29]]).
    #[[Uninstall Firefox from your computer|Uninstall Firefox from your computer]].
    #Reinstall Firefox using the setup file you downloaded before.
    <b>WARNING:</b> Do not use a third party uninstaller as part of this process. Doing so could permanently delete your [[Profiles|Firefox profile]] data.

  • How can I disable thumb nails when a new tab is opened?

    When I open a new tab it is cluttered with all of the prior web pages that I recently visited. There should be a simple way to disable this feature such as a menu item.

    See if this support article helps you - https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites

  • How can I disable color print when using airprint?

    How can I print from my iPhone or iPad in black and white only, so as to save my color ink?  I am using HP Photosmart 5510.  I can't see how airprint gives that option. Is there an app out there for this?

    That is a function of your printer, you can set your printer to be B&W via it's front panel settings.

Maybe you are looking for