Document Level JavaScript to turn off caching for a PDF?

I have been trying to find a way to ensure that a fillable PDF leaves no trace of itself on a computer that was used to open it. For example, if a user acceses a fillable PDF via browser or Reader, once they are done and have closed the browser or Reader, I want no trace of the information to remain in any cache on that machine. We don't want to require our users to try to control cache via settings in Reader, so I have been trying to find other ways to do this.
I came across the following comment from GKaiseril in another thread - is this a way for a PDF to control its own caching? Any details or alternative approaches would be welcome!
GKaiseril
Re: Metadata - Can't remove
 You can also use document level JavaScirpts to turn off the auto complete and caching for a given PDF.

Version 9 and 10 of Reader do not cache form data in a temporary FDF as previous version may have. The nocache document property it not even documented in the latest Acrobat JavaScript reference. If you're concerned about previous versions, you can use set the nocache document property at run-time, but users can disable JavaScript, so that approach is no guarantee.
For information on controlling autocomplete, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.407.html

Similar Messages

  • Turning off caching for loading a text file

    I'm new to AS3 and don't understand the properties setting
    for URLRequest. I'm trying to turn caching off so when I reload the
    text file, it always gets a fresh copy. I keep getting compiler
    errors however with the useCache line. I'm not accessing the
    properties correctly or something. When I take out that line it
    works fine but always fetches the cached file.
    My code is:
    loadDoctorVariables();
    function loadDoctorVariables() {
    var requestJo:URLRequest = new URLRequest("
    http://www.grxsolutions.com/gtslideshow3/"+doctorURL+".txt");
    //requestJo.useCache(false);
    requestJo.useCache = false;
    var variables:URLLoader = new URLLoader();
    variables.dataFormat = URLLoaderDataFormat.VARIABLES;
    variables.addEventListener(Event.COMPLETE, completeHandler);
    try
    variables.load(requestJo);
    catch (error:Error)
    trace("Unable to load URL: " + error);
    function completeHandler(event:Event):void {
    var loader:URLLoader = URLLoader(event.target);
    trace(loader.data.dayNames);
    trace(loader.data.monthNames);
    trace(loader.data);
    trace(loader.data.saturationColor);
    //saturationColor=10&hue=100&tint=255&bright=12&bgimage=ironman&slidesused=1,2,3,4,7,8,9, 10,11&voice=male1&alternateslides=7,doctorbob1,11,doctorbob2
    }

    append a random string to the URL, ie
    var requestJo:URLRequest = new URLRequest("
    http://www.grxsolutions.com/gtslideshow3"+doctorURL+".txt"+"?c="+Math.random());

  • Turn off Cache in OBIEE

    Hi,
    I am seeing some issue with cache -
    Is it possible to turn off cache for all reports in OBIEE.
    Or
    Is it possible to purge cache automatically from RPD and from answer?
    Thanks,
    Poojak

    Hi ,
    You can diable the cache in NQSCONFIG.INI file.
    You can purge the cache from the answer
    http://bintelligencegroup.wordpress.com/2011/01/06/how-to-purge-the-cache-from-dashboard/
    and also from rpd manage -->cache you purge
    or using the event polling
    http://bintelligencegroup.wordpress.com/2011/07/27/event-polling-table-to-purge-the-cache-in-obiee/
    Hope this will help you.
    Thanks,
    Ananth

  • Document-level javascript quandry

    Ok, completely clueless newbie here whose only coding experience is Access VBA…from a few years ago. Need to write up some Javascript to make this work – that was a month’s worth of a migraine.  I ask for your patience, and would like to ask for forgiveness in advance for any headaches I induce while you try to figure out my problem(s).  Also, I’m not sure how to copy paste images or code examples, but I will do my best.
    So, basic premise:  make a drop-down combo box that will populate another combo box based on whatever was selected in the first box – in this case, 31 items in the ‘Inventory Parts Used’ list, and a total of 427 respective sizes in the other list. 
    YES, I’ve already looked at that http://acrobatusers.com/tutorials/js_list_combo_livecycle1 example, and followed it closely.  Took me forever, but I somehow got it to work. Was very happy.  Only thing I couldn’t figure out was the export value b/c mine wasn’t a number.  But I solved that by putting the CodeID and respective PartSize together (ex: 4-inch Fire Hydrant would show up as "FH-01:  4"). Anyways, I selected that working row and choose the “Place Multiple Fields” option times 15 rows.  Still working.  I’m dancing a jig. Then I tried to check on the code: 
    “Text cannot be displayed in full by the Edit Dialog.  Please use an External Editor.” 
    Uh… So I deleted a row at a time until I could see what my limit was.  I had to pare down 15 rows to a measly 3 rows.  Took me a while but I was able to see where the problem was.  Instead of being written into the Document-Level JS, my array was tied to the first combo box’s Keystroke event on the Field Level.  So when I multiplied the rows, that humongous list essentially had diarrhea.
    I’ve tried to delete that header and keep it to Document Level.   It basically ignored me and keep those lines.  When I did manage to make the <Document-Level> on top, it just didn’t work.
    (    //<AcroForm>
    //<ACRO_source>Row0.InvPart:Keystroke</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: AcroForm:Row0.InvPart:Keystroke ***********/    )
    I’ve searched other forums about the Document-level…. I swear I read a lot of forums that said using Advanced>Document Processing>Set Document Actions>Edit All was ok. Clearly it’s not ok, especially after I found this forum: http://answers.acrobatusers.com/Where-I-enter-document-level-javascript-adding-FormRouter- Calendar-q55527.aspx. 
    So I guess my question(s) is this:  IS that “Edit Document Javascripts” really necessary?  B/c I’ve looked and I don’t have it. I’m using Adobe Acrobat 9 Standard, ver 9.5.5 (and I’m using Windows XP Pro ver 2002 , if that matters).  Is this JS editor only available to the Pro version?  Would it really be a bad thing to just leave it alone as a keystroke event (aside from the unwieldy large, duplicated codes it vomits as a result)? Or maybe, is there a way to code a new row on instead?  I remember seeing an example where you can add more lines as needed, but I can’t for the life of me find it again.
    Thank you in advance for all your assistance.

    * Huh....it just figures... right after I finally give up and post up a question, I would find the answer. =_=;; http://forums.adobe.com/message/4727325#4727325. 
    So, Standard version apparently doesn't have that exalted “Edit Document Javascripts”.  Apparently a way around it is using the Page Open event.  Well, it works - the massive array only shows up once in the editor, and the multiple rows each call the function instead.  Nice. 
    Well, I will leave this up in case someone else can use the reference.  Thanks to anyone who read this and was going to answer me. =)
    Don't suppose anyone knows how to create a code to add new rows instead of having 15 rows straight off the bat?  Or should I make a new post for that?

  • Document-level Javascript as Object

    I created a document level script called Utility.
    I want to create methods within this script rather than coding each one separately.
    function Utility()
    this.getFormattedDateOnly=function(pDate) {
      if (typeof pDate == "undefined") {
        pDate = new Date();
      var retval = util.printd("m/dd/yyyy",pDate);
      return retval;
    this.getFldsOnPagenum = function(pPageNum, pDoc) {
      /* returns an array of the form fields who are on or start on a page */
      /* zero based return ; however pPageNum is 1 thru numPages, not 0 -> numPages-1 */
      var currPage;
      var currFld;
      var cnt = -1;
      var ARflds = [];
    CPR("# flds=" + pDoc.numFields+" Type of pDoc:"+ (typeof pDoc));
      for (var i = 0; i < pDoc.numFields; i++) {
        currFld = pDoc.getNthFieldName(i);
        if (typeof currFld.page == "number") {
    CPR("page="+(1*currFld.page+1));
          if ((1*currFld.page+1) == pPageNum) {
            cnt++;
            ARflds.length = cnt + 1;
            ARflds[cnt] = currFld;
    CPR("\n cnt="+cnt);
        } else if ((1*currFld.page[0]+1) == pPageNum) {
          cnt++;
          ARflds.length = cnt + 1;
          ARflds[cnt] = currFld;
      return ARflds;
    var MyUtil = new Utility();
    This is all working fine with the following exceptions:
    1) the methods are not being registered in the Javascript hierarchy listing.
    That's annoying.
    2) "This" is not recognized at the document level....I must pass it as a parameter (pDoc).
    I thought that was strange...I could see it if were at the folder level.
    It appears the document object is out-of-scope !!
    3) currFld = pDoc.getNthFieldName(i);
    The above is failing....sending back a "currFld is undefined" error.
    I don't see the problem....very strange IMHO.
    When I call the getNthFieldName function from the console....no problem.
    What am I doing wrong in the definition here ?
    It appears that what I did has Acrobat functions and document properties out-of-scope.

    I think this would work if you could make the document object a member of the Object being created.
    To do that, a constructor needs to be invoked so that it can instantiate a public property of the Object.
    var MyUtil = new Utility(this);
    inside of Utility I would have:
    this.oPDFdoc =  this;
    thereby transferring a reference to the entire PDF document to my Object.
    Getting this to work would eliminate the need for all of the document-level javascript references.

  • Integration of javascript libraries with Acrobat Document Level Javascript

    I have a requirement to build a custom SOAP message and process a PDF document as a SOAP attachment sent to a specific endpoint.
    Document level javascript presents a tool that when coupled with a third party javascript library could be used to capture the PDF document and send it as a custom SOAP message built entirely with Javascript.
    Does document level javascript allow for integration with third party libraries like Dojo or the like?
    Any examples available of document level javascript including known third party javascript/ajax libraries?

    Ajax and other JS libraries can't really be used in Acrobat. You can load them, of course, but they're built for JS that runs in web-browsers and will not be of much use in a PDF.

  • Multiple document level javascripts

    Hi everyone,
    I've just created a document level javascript that assesses the viewer's version of acrobat. I also need to create another document level javascript that will open a popup menu when the document is opened, providing instructions on how to fill out the form. Since there will be two document level javascripts happening at the same time, ie. when the document opens, I wondered if someone could tell me if this is going to cause some conflict. I mean the second javascript that creates the instructions popup is going to happen for everyone when the document opens but the first viewer version javascript will only be triggered if the viewer's version is less than 7.5. So I wondered if someone opens the file and both javascripts are triggered, will this cause an error, or will both popup boxes appear on the screen at one time. I can't actually test this myself since my version of acrobat is current.
    Appreciate any advice.

    They will not lauch in parallel, but one after the other, probably based on their names.
    My suggestion to you is to just combine the two into a single script, each in its own function, and then run them in the order you prefer.

  • Turn off ATP for a Storage Location

    Hi,
    I want to turn off ATP for a Storage Location.
    I am aware of a setting on IMG where we can have this done but not able to find the right node.
    Can someone help me with it?
    availability check NOT TO CHECK the stock at the storage location level
    Thanks,
    Mike

    Availability checks can be triggered either automatically or manually:
    The availability of components in an order can be checked automatically during order creation and/or order release. You specify in CustomizingOPJK per order type and plant whether the availability should be checked automatically. In addition, an automatic availability check can be carried out when the order is saved.
    You can always trigger a manual availability check
    The checking scope is defined via the Checking Group (in the material master) and the valid Checking Rule (in Customizing).
    They define:
    Which MRP elements are taken into account in the check
    Which inventory categories are taken into account
    Whether the replenishment lead time is taken into account
    Whether the check is also to be carried out at storage location level
    In Customizing (checking control) you specify which quantity is used to check the availability of a material. You can choose between the following:
    Availability Check Against Planned Independent Requirements
    In the check against planned independent requirements, the system only checks the open planned independent requirement quantities created for the components. This means that the ATP quantity is not included in this availability check nor are receipts or stocks.
    This type of availability check is most useful:
    if assembly planning or phantom assembly planning is used to plan the components
    if quick statements about the availability situation are required and the results from this check are precise enough
    The system uses the open planned independent requirements quantity at component level to determine a committed quantity and this quantity is copied to the planned order header in the Committed quantity field. As opposed to the availability check according to ATP logic, however, the committed quantity is not recorded in the dependent requirements. The planned independent requirements of the components are not consumed by the committed quantity but by the complete dependent requirements quantity. In availability checks that follow, the system can only commit quantities for the amount of planned independent requirements that have not yet been consumed.
    In the availability check against planned independent requirements, the following dates/quantities are not calculated:
    overall commitment date
    partial commitment date/quantity
    ATP quantity
    In the check according to ATP logic, the system checks whether the dependent requirements of each component are covered by specific receipt and issue elements or by stock. This check is carried out dynamically, that is, each time you carry out the check, the system recalculates the current situation. If a quantity can be committed for the requirement date, the system enters precisely this quantity as the committed quantity in the dependent requirements and the ATP quantity for the components is reduced by the committed quantity. Therefore, in the next availability check, dependent requirements can only be committed for the amount of the remaining ATP quantity.

  • Help isn't displaying because JavaScript is turned off. You can enable JavaScript in your browser's preferences or settings. Then refresh this page to try again.

    Help isn’t displaying because JavaScript is turned off.
    You can enable JavaScript in your browser’s preferences or settings. Then refresh this page to try again.
    I've followed instructions to remove problem, still exists, how do I get Iphoto to open?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • How can I turn off imessage for just one of my contacts? Me and my husband just upgraded (both had iphone 4), I got the iphone 5s and he got he note 3. All my text to him automatically send as a imessage. Ive tried to delete his contact and then went back

    How can I turn off imessage for just one of my contacts? Me and my husband just upgraded (both had iphone 4), I got the iphone 5s and he got he note 3. All my text to him automatically send as a imessage. Ive tried to delete his contact and then went back in and reentered it but that doesnt work.

    Have your husband text the word "stop" to 48369. This should take his number out of the iMessage system.
    Go into your settings under messaging and make sure the box to send as an SMS if iMessage is unavailable is checked.
    Hopefully this will get your messages sending/receiving to each other.

  • Turn off iMessage for just one person

    I have one friend that I text a lot who has an iPhone and I want to be able to text her using text message instead of iMessage. Another one of my friends only has an iPod though, so I don't want to turn off iMessage. Is there a way I could turn off iMessage for just my one friend?

    Elisa523 wrote:
    I have one friend that I text a lot who has an iPhone and I want to be able to text her using text message instead of iMessage. Another one of my friends only has an iPod though, so I don't want to turn off iMessage. Is there a way I could turn off iMessage for just my one friend?
    No.
    They can turn off iMessage and they won't send/receive them

  • HT5362 How do I turn off notifications for Software Updates? 'App Store' doesn't show in the list of notification apps. I want the background checks for updates, just not the notifications.

    How do I turn off notifications for Software Updates?
    In the 'Notifications' section of the 'System Preferences' app, there is no tab for managing the notifications of System Updates nor App Store.
    Hey--- I like auto-checking for updates, and hey--- I like auto-downloading them in the background.
    BUT I do not like being notified of updates in the middle of working! Especially when it's iTunes updates. Grrrr.
    Any chance this is easy and I just missed it?
    THANKS COMMUNITY!

    Settings > Notification Center > Mail > Select the mail account (if more than one) > Alert Sound > None

  • Mail shows up in several different inboxes, including the one it was intended. How can I turn off notifications for these duplicate messages?

    I would like to turn off notifications for duplicate mail messages.
    Thanks,
    Ralph Sapertein

    Kurt told you how to turn it off. To learn the Spotlight differences between Tiger and Leopard, see http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by Leopard's default structure.

  • E71. How to turn off ringer for any contact in con...

    Hi
       Please can any one share how can I turn off ringer for any specific contact ?
    Regardds

    use your imagination: assign an empty mp3 file (or an "only silent" mp3 file) to that contact, it should work.
    GermanG from Argentina

  • How to turn off alerts for incoming emails

    How do you turn off alerts for incoming emails on the iphone?

    Settings>Sounds>Ringer and Alerts>New Mail>Off.

Maybe you are looking for