Professional Web Applications Themes

How to clean file cache before loading PDF file ? - Adobe Acrobat SDK

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 doent and then we open and close the doent in my application So I wanted to know is there any way to ...

  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 doent and then we open and close the doent 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. #2

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

    there is a preference in Acrobat to re-open doents 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

  3. #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 doent 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

  4. #4

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

    Leonard,

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

    So that, I can change it thru code.

    Regards,
    Arvind
    arvindg007@adobeforums.com Guest

  5. #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 doentation.
    Leonard_Rosenthol@adobeforums.com Guest

Similar Threads

  1. Trusted cache and txt file
    By shfsjgfjdgkjj in forum Coldfusion Server Administration
    Replies: 0
    Last Post: November 1st, 10:13 PM
  2. Replies: 0
    Last Post: July 25th, 01:55 AM
  3. How can I prevent MP3s to end up in the cache file in the user's pc?
    By JL in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: January 13th, 05:16 PM
  4. File browser cache purge
    By Pete D in forum Adobe Photoshop Elements
    Replies: 7
    Last Post: August 16th, 05:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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