How to clean file cache before loading PDF file ?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default How to clean file cache before loading PDF file ?

    Hi,

    I have one application in which we open PDF file inside it using the following api .
    BOOL ok = m_pAcroAVDoc->OpenInWindowEx (pszPathName, (long)OurHWND,AV_DOC_VIEW ,TRUE , 0 , PDUseBookmarks ,
    AVZoomFitPage , 0 , 0 , 0 );

    What I observed that, when we open PDF files second time, it opens with a page where we have closed it for the first time.

    It happens only when acrobat.exe is already running means if somebody already opened another PDF document and then we open and close the document in my application

    So I wanted to know is there any way to clean file cache information so that it open file with the first page always ?.

    Regards,
    Arvind
    arvindg007@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Trusted cache and txt file
      I have caching turned on. I have property.txt file that is read in using cffile. My question is, if I make changes to that property.txt file, will...
    2. file upload, multipart form, and cgi::cache
      Not sure if folks frequent this forum but if you see this and can/do help, I'd be much obliged I am trying to implement caching in a cgi app I am...
    3. install HTML::Template - Problem reading cache file / Bad file number
      i get the following error when i try to install HTML::Template to my local space, ie, not as root: +---------------------------- % perl -MCPAN...
    4. how can I clean up the no-useful file in rootvg?
      I have only one disk for rootvg,so can anyone give me some advises to free more space for system use----decrease the size of the common use...
    5. File browser cache purge
      On the file browser, … (after clicking "more") … at the bottom of the option list is "purge cache". If the "purge cache" is clicked a caution...
  3. #2

    Default Re: How to clean file cache before loading PDF file ?

    there is a preference in Acrobat to re-open documents at the last page that they were viewed. this preference works in both Acrobat and external applications.

    Ask your users to not set that preference (it is off by default).

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: How to clean file cache before loading PDF file ?

    Hi Leonard,

    Just now,I checked that setting, and that is working fine for external application. But not for internal application.
    I set it off that restore setting even then it is opening the document at the last page where user viewed in my application.

    Is there any api to set that particular setting internally ?

    -Regards,
    Arvind
    arvindg007@adobeforums.com Guest

  5. #4

    Default Re: How to clean file cache before loading PDF file ?

    Leonard,

    Could you please let me know the internal name for document preference named "Restore Last View Settings When Reopening Documents"?.

    So that, I can change it thru code.

    Regards,
    Arvind
    arvindg007@adobeforums.com Guest

  6. #5

    Default Re: How to clean file cache before loading PDF file ?

    I don't believe that preference is exposed via the preferences API. If it is, then it will be listed in the documentation.
    Leonard_Rosenthol@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139