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 .
AxAcroPDFLib.AxAcroPDF axAcroPDF1 = new AxAcroPDFLib.AxAcroPDF();
axAcroPDF1.LoadFile(m_FileName);
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 ?.

Moved to the Acrobat SDK forum: Acrobat SDK

Similar Messages

  • How do i stop quicktime from loading pdf files

    Why is Quick time loading pdf file and how do I stop it .

    I have the same issue with Safari opening Web PDF links in Quicktime.  When I click on a PDF URL the Quicktime logo will display in Safari, then the first page of the PDF will come up, and only the first page will be available, there is no way to scroll to subsequent pages.  I have not found any settings in Safari, Quicktime, or Adobe Reader to turn that off.  How can I get Quicktime to not be the default imbedded reader for PDF in Safari.

  • How to maintain page order in load pdf/save pdf

    (Photoshop CS6)
    I want to apply one and the same action to all pages of a pdf-file. The pages have a systematic error, too dark.
    So:
    1. load pdf-file
    2. select all pages
    3. apply action, in my case change level, to all pages
    4. save all pages as pdf-file, in the original page order.
    Thanks,
    Peter J. Veger, Best

    You could use this script to save the pdf, as it will reverse the order of the documents....
    #target Photoshop
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    var win= new Window('dialog');
    win.pnl1 = win.add('panel', undefined, undefined, {borderStyle:"black"});
    win.g5 = win.pnl1.add('group');
    win.g5.alignChildren="center";
    win.g5.title = win.g5.add('statictext',undefined,'Save PDF');
    win.g5.title.graphics.font = ScriptUI.newFont("Georgia","BOLDITALIC",20);
    win.g10 = win.pnl1.add('group');
    win.g10.orientation="column";
    win.g10.alignment=["left","fill"];
    win.g10.st1 = win.g10.add('statictext',undefined,'Please enter file name');
    win.g10.st1.helpTip="Do not add the suffix .pdf";
    win.g10.et1 = win.g10.add('edittext');
    win.g10.et1.preferredSize=[250,20];
    win.g10.st2 = win.g10.add('statictext',undefined,'Please select output folder ...');
    win.g15 = win.pnl1.add('group');
    win.g15.orientation="row";
    win.g15.alignment=["left","left"];
    win.g15.et1 = win.g15.add('edittext');
    win.g15.et1.enabled=false;
    win.g15.et1.preferredSize=[250,20];
    win.g15.bu1 = win.g15.add('button',undefined,'Browse');
    win.g15.bu1.onClick = function() {
      outputFolder = Folder.selectDialog("Please select the output folder");
    if(outputFolder !=null){
      win.g15.et1.text =  decodeURI(outputFolder.fsName);
    win.g100 = win.pnl1.add('group');
    win.g100.orientation="row";
    win.g100.bu1 = win.g100.add('button',undefined,'Save PDF');
    win.g100.bu1.preferredSize=[165,30];
    win.g100.bu2 = win.g100.add('button',undefined,'Cancel');
    win.g100.bu2.preferredSize=[165,30];
    win.g100.bu1.onClick=function(){
    if(win.g10.et1.text == ''){
        alert("No file name has been entered!");
        return;
    if(win.g15.et1.text == ''){
        alert("No output folder has been selected!");
        return;
    win.close(0);
    var Names=[];
    for(var a=0;a<documents.length;a++){
        Names.push(decodeURI (documents[a].name));
    Names.reverse();
    var SaveFile = File(outputFolder + "/" + win.g10.et1.text + ".pdf");
    makePDF(Names,SaveFile);
    win.show();
    function makePDF(Names,SaveFile) {
    var desc = new ActionDescriptor();
    var list = new ActionList();
    for(var z in Names){list.putString( Names[z].toString() );}
    desc.putList( charIDToTypeID('flst'), list );
    desc.putPath( charIDToTypeID('T   '), new File( SaveFile ) );
    desc.putBoolean( stringIDToTypeID('includeAnnotations'), true );
    desc.putEnumerated( charIDToTypeID('BckC'), charIDToTypeID('BckC'), charIDToTypeID('Wht ') );
    var desc2 = new ActionDescriptor();
    desc2.putString( stringIDToTypeID('pdfPresetFilename'), "High Quality Print" );
    desc2.putBoolean( stringIDToTypeID('pdfPreserveEditing'), false );
    desc2.putInteger( stringIDToTypeID('pdfCompressionType'), 7 );
    desc.putObject( charIDToTypeID('As  '), charIDToTypeID('PhtP'), desc2 );
    executeAction( stringIDToTypeID('PDFExport'), desc, DialogModes.NO );

  • UNIX sed commands to clean up data before loading into BI

    Hi all,
    we are trying to load the data into BI from text files.. This data needs to be cleaned before it can be loaded into BI and this has to be done using UNIX sed commands!!
    We basically need to do a data cleansing act, like removing unwanted characters (tab values and newline values as part of the characteristic values). How can it be done using unix sed commands??
    your help is very much appreciated.
    Regards

    Hi all,
    we are trying to load the data into BI from text files.. This data needs to be cleaned before it can be loaded into BI and this has to be done using UNIX sed commands!!
    We basically need to do a data cleansing act, like removing unwanted characters (tab values and newline values as part of the characteristic values). How can it be done using unix sed commands??
    your help is very much appreciated.
    Regards

  • How to get object key before load data into form?

    I need to get object key (e.g. ItemCode in Item Master Data From ,docEntry in A/R Invoice From) to calculate and do something  before data is loaded into this form .
    I try to use SAPbouiCOM.BusinessObjectInfo.objectKey as in this code.
    Private Sub oApp_FormDataEvent(ByRef pVal As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
           If pVal.FormTypeEx = "672" And pVal.BeforeAction = True And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD Then
                   oApp.MessageBox(pVal.ObjectKey)
           End If
    End Sub
    But this fields doesn't valid under this condition (form DI help file).
    - The property returns an empty value in the before notification of the Load action (et_FORM_DATA_LOAD) triggered by a Find operation.
    How can I get this value(key)?

    Janos
    I can't do a calculation after data is loaded because what I'm going to do is that if the opening entry match my condition , the system will not let that user see that entry (bubbleEvent = False).
    I think when formDataEvent is triggered B1 know which entry are going to load because before this event is triggered we did one of following ways
    1. choose from "choose from list windows"
    2. enter docEntry or itemCode or cardCode  and then press Find Button
    3. press "next/previous record button"
    4. press linked button (orange arrow)
    Choice 3 and 4 can be done by retrieve data from BusinessObjectInfo.objectKey (I've tested and it return entry key that is going to open correctly).
    but 1 and 2 can't (it return empty as I mention before).
    thanks
    Edited by: daron tancharoen on Aug 5, 2008 2:34 PM

  • How to call AMImpl method before loading the page(task_flow_config.xml)

    Hi experts,
    I have requirement like,
    I need to call AmImpl method, before rendering the page.(I heard like we can do it in task_flow_config.xml by using method_Invoke operation,But I am not sure about How it is going to work, also i need to know the implementation part,,,help pls )
    (I need to do in Task_Flow.)
    Inside that method I have some logic, where I will setting the BindVariable of my one ViewObject and I need to run the ViewOblect,So that DataShuold be available while page loading.
    I have some different logic after that,,,,
    can anyone suggest me for this??
    thanks
    Santosh

    thanks to Timo n TK,
    I have use case like,
    In the search page I have 2 LOV dropdowns say LOV1 and LOV2. Both list of values are created based on the independent View Objects based on the Query.
    LOV2 VO query is having the Bind Variable, for that Bind variable will be getting the value from the one of the AM method based on the user logged in.
    Also I need to display LOV2 dropdown in the page when user selects LOV1 as a 'SCM', for others it should be in hidden state.
    As per requirement I have to display LOV2 only for LOV1 value as 'SCM'. So I dont want to use valueChangeListner() for this.
    Instead I want populate LOV2 value before page rendering(because in that time i will be having all the parameter to populate ) by executing LOV2 VO Query.
    Once in search page user selects LOV1 as 'SCM', I should display 'LOV2' values in the dropdown.
    If i execute LOV2 VO in the AMImpl method say A() before page rendering ,then if user select LOV1 as 'SCM', will same data available in the dropdown (LOV2 dropdown is based on the LOV2VO)??
    Can u pls suggest me how can i render ,LOV2 when LOV1 as 'SCM' by using 'rendered' property without having valueChangeListner??
    pls suggest me the right approach as per my use case..
    waiting for reply,,
    Thanks
    Santosh

  • How to finish flash movie before loading url

    I'm pretty new at web design but I've picked up Flash through some  tutorials.  I'm a bit stuck on how to do the following:
    When you click on one of my home page buttons I want my flash animation  movie to finish THEN link to url.
    I tried adding an eventListener for the tween to 'finish' and then added  a link to url to the button but it either linked immediately or the  movie finished and didn't link at all.
    Here is an example of the code for the button and animation:
    rentals_btn.addEventListener(MouseEvent.CLICK, rentalsClick);
    function rentalsClick(e:MouseEvent):void {
    trace("rentalsClick");
    var myxTween:Tween=new  Tween(Truck_mc,"x",Regular.easeInOut,Truck_mc.x,-378,4,true);
    var myyTween:Tween=new  Tween(Truck_mc,"y",Regular.easeInOut,Truck_mc.y,0,4,true);
    after this x, y, animation finishes I wish for the button to link to my  rentals page url. In all of the sections to my site, I want to be able  to link to separately so I didn't design the flash to animate to each  section.  I want it to link to the url.
    Any help would be really appreciated.

    Your attempt to listen for the end of the tween would have been th correct approach, so maybe your coding of it is off...
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    rentals_btn.addEventListener(MouseEvent.CLICK, rentalsClick);
    var myxTween:Tween;
    var myyTween:Tween;
    function rentalsClick(e:MouseEvent):void {
         trace("rentalsClick");
         myxTween = new  Tween(Truck_mc,"x",Regular.easeInOut,Truck_mc.x,-378,4,true);
         myyTween = new  Tween(Truck_mc,"y",Regular.easeInOut,Truck_mc.y,0,4,true);
         myyTween.addEventListener(TweenEvent.MOTION_FINISH, moveOn);
    function moveOn(TweenEvent):void {
         myyTween.removeEventListener(TweenEvent.MOTION_FINISH, moveOn);
         navigateToURL(...etc);

  • How to clean device cache on PI 2.0

    Hi,
    I deployed PI 2.0 and added devices into it. For one of devices, PI complains credential mismatch. Here are troubleshooting I have done,
    1. Double check credentails are identical.
    2. Delete and readd the device in device work center.
    Not sure if there is credential caching on the PI? Please help
    Thanks

    Prime won't cache device credential settings-
    Either the credentials are correct or they're not...
    If you removed the device then put it back in and it's still failing, my guess is the credentials you think are right actually aren't.
    try to snmpwalk the device from your Prime server cli to make sure snmp is correct-
    make sure you can ssh or telnet into the device from the Prime server-
    if using ssh you will probably need to make sure ssh version 2 is running on the device-

  • ODI : how to raise cross reference error before loading into Essbase?

    Hi John .. if you read my post, I want to say that you impress me! really, thank for your blog.
    Today, my problem is :
    - I received a bad quality data file from ERP extract
    - I have cross reference table (Source ==> Target)
    - >> How to raise the error before loading into Essbase !
    My Idea is the following, (first of all, I'm not sure if it is a good one, and also I meet issue to do it in ODI !)
    - Step 1 : make JOIN between data.txt and cross-reference Table ==> Create a table DATA_STEP1 in the ODISTAGING schema (the columns of DATA_STEP1 are the addition of columns of data.txt those of cross-references Tables (... there is more than 20 columns in my case)
    - Step 2 : Control if there is no NULL value in the Target Column (NULL means that the data.txt file contains value that are not defined in my cross reference Table) by using Filter ( Filter = Target_Account IS NULL or Target_Entity IS NULL or ...)
    The result of this interface is send to reject.txt file - if reject.txt file is not empty then a mail is sent to the administrator
    - Step 3 : make the opposite : Filter NOT (Target_Account IS NULL or Target_Entity IS NULL ... ) ==> the result is sent in DATA_STEP3 Table
    - Step 4 : run properly the mapping : source : DATA_STEP3 (the clean and verified data !) with cross reference Tables and send data into Essbase - NORMALY, there is not rejected record !
    My main problem is : what is the right IKM to send data into the DATA_STEP1, or DATA_STEP3 Table, which are Oracle Table in my ODISTAGING Schema ! I thy with IKM Oracle Incremental Update but I get error, and actually I don't need an update (which is time consumming), I just need an INSERT !
    I'm just lookiing for an 'IKM SQL to Oracle" ....
    regards
    xavier

    Thanks john : very speed !
    I understood better now which IKM is useful.
    I found other information about the error followup with ODI : http://blogs.oracle.com/dataintegration/2009/10/did_you_know_that_odi_generate.html
    and I decided to activate Integrity Constorl in ODI :
    I load :
    - data.txt in ODITEMP.T_DATA
    - transco_account.csv in ODITEMP.T_TRANSCO_ACCOUNT
    - transco_entity.csv in ODITEMP.T_TRANSCO_ENTITY
    - and so on ...
    - Moreover I create integrity constraints between T_DATA and T_TRANSCO_ACCOUNT and T_TRANSCO_ENTITY ... so I expected that ODI will raise for me in E$_DATA (the error table) the bad records !
    However I have one issue when loading data.txt into T_DATA because I have no ID or Primary Key ... I read in a training book that I could use a SEQUENCE ... I try but unsuccessful ... :-(
    Is there another simple way to create a Primary Key automaticaly (T_DATA is in an oracle Schema of course) ?thanks in advance

  • Programatically scroll a loaded pdf file

    I was wondering how can I programatically scroll a loaded pdf file? I would be so thankful of any working reply.

    Do you want it to scroll in the Adobe Reader program or as a part of the VI?  In the Adobe Reader option, it would depend on if Adobe has ActiveX support.  If so you can access ActiveX in LabVIEW .  However there is no inherent way to manipulate PDFs in LabVIEW other than using this method.
    David_L | Certified LabVIEW Architect
    LabVIEW Tools Network | LabVIEW Tools Network Developer Center

  • Cache and Load Balancing with Oracle APEX Listener

    Hi,
    I intend to use only HTTP access.
    How to implement a Cache and Load Balancing with the Oracle APEX Listener?
    Is it possible to do with the the standalone running APEX Listener?
    Thanks by advance for any tips/documentation/references.
    Kind Regards.

    Hi,
    I think this question is best asked in the APEX Listener forum:
    ORDS, SODA & JSON in the Database
    Kind regards
    Sandro

  • Cache and Load Balancing for the Oracle APEX Listener

    Hi,
    I intend to use only HTTP access.
    My database is Oracle 11gR2, SE, 32 bit.
    How to implement a Cache and Load Balancing with the Oracle APEX Listener?
    Is it possible to do with the the standalone running APEX Listener?
    Thanks by advance for any tips/documentation/references.
    Kind Regards.

    Error. To be closed.

  • Cache and Load Balancing for Oracle APEX Listener

    Hi,
    I intend to use only HTTP access.
    The database I use is Oracle11gR2 SE 32bit.
    How to implement a Cache and Load Balancing with the Oracle APEX Listener?
    Is it possible to do with the the standalone running APEX Listener?
    Thanks by advance for any tips/documentation/references.
    Kind Regards.

    Error. To be closed.

  • Start CalcScript befor loading data

    How can I start CalcScript befor load data?
    I want clear slice in cube befor load data.
    Example:
    I export data with period Jan, Feb, so I must clear data in Essbase cube only fo period Jan, Feb. In the case when I export data for period Mar, I want clear data with period Mar.
    I don't want use maxl because in a maxl script I must specify login and password.
    Thanks a lot.
    Gelo

    Hi,
    The best way is to duplicate the KM - "IKM SQL to Hyperion Essbase (DATA)"
    Edit command "Load data into essbase" of the KM
    Update
    sql= """select <%=od.....
    to
    sql= ""
    Now you can create an interface, set staging as "SUNOPSIS MEMORY ENGINE" and just drop the essbase dataload datastore on to the target, set the KM to the one you just updated.
    Then use the calc script options, so you have an interface that does not need a source and can run CALC scripts.
    Ok? Correct :)
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to Enable Plugin before File Opened And Load PDF File From memory?

    hello everyone,
    there have two problems,all i want to do is to show a pdf file encrypted by AES algorithm.
    1.one is how to enable plugin before file opened?
    i developed another two plugin,and each enabled after one pdf file was opened,and now i want to replace the file open command and can do some word by meself,such as decrypt the pdf ?
    2.another is how to load pdf file from memory?
    if i can enable plugin before file opened,and than i can read the file and decrypt it,and now i want to do is do load the decrypt file (in memory) into the adobe?
    i tried many method,but all in vain.who can help me or give me some advice?
    thanks.
    merry chrismas to everyone.

    The proper way to handle other file formats (even where it is really a PDF that has been "wrapped") is to create an AVConversionHandler.
    To load a PDF from a source other than the file system, you need to create a custom AVFileSys.

Maybe you are looking for

  • Single user mode using from laptop

    Hi, I need to booting off the CDRom Solaris to rebuilding the server. But unfortunately, I am connect the laptop into the Sunfire V240 and I do not know how to make it boot in cdroom, since the laptop doesn't have a "Stop" key as Unix keyboard. Can y

  • How to invalidate a session explicitly when a browser is closed

    hi, i am keeping the information of a logged user when he logs succesfully in a session. the session time is maintained for half an hour. i am also storing his information in an application object. when a user logs out i am invalidating the session a

  • Icons in bookmark bar

    does anyone know how to replace the text in the bookmarks bar with icons like google chrome does?

  • FB65 - Vendor credit memo

    Hello Experts, I have a question reg vendor credit memo. When I post a credit memo, vendor account gets debited and what will be the GL account used for credit entry?   Am using this credit memo to balance the wrongly posted vendor invoice. Any help

  • My computer stopped recognizing my 6th gen nano.  i have unstalled and reinstalled itunes.  any other suggestions.

    My computer stopped recognizing my 6th gen nano.  I have un then reinstalled itunes as I was prompted.  Still nothing.  My account is up to date and my last purchase was a few weeks ago.  Apple wants me to purchase @ 29.99 an opportunity to speak to