How to enable selection of annotations for DoClickProc

Hi,
I created a sample myDoClickProc() below as an action invoked by clicking text annotations.
The program works fine except that the clicked notes (text annotations) do not get selected.
Specifically, I cannot select multiple notes or copy them, though each of them can be deleted one by one.
Also the note size changes after execution of SDKInit(), perhaps scaling to 100% of PDF documents.
Please let me how to fix the problems.
Thank you.
static AVAnnotHandler originalHandler;
static ASAtom textAtom;
ACCB1 ASBool ACCB2 myDoClickProc(AVAnnotHandler annotHandler,
      PDAnnot annot, AVPageView pageView, AVDevCoord xHint,
      AVDevCoord yHint, AVFlagBits16 flag, AVTCount clickNo)
     ASBool ret = originalHandler->DoClick(annotHandler,annot,
         pageView,xHint,yHint,flag,clickNo);
     char buf[128];
     PDTextAnnotGetContents(annot, buf, 128);
     AVAlertNote (buf);
     return ret;
static ACCB1 ASAtom ACCB2 myAnnotGetType(AVAnnotHandler handler)
    return textAtom;
void SDKInit()
    textAtom = ASAtomFromString("Text");
    ASAtom name = ASAtomFromString("AVAnnotHandlerDoClickProc");
    originalHandler = AVAppGetAnnotHandlerByName(name);
    static AVAnnotHandlerRec newHandler;
    memcpy (&newHandler, originalHandler, sizeof(AVAnnotHandlerRec));
    newHandler.DoClick = ASCallbackCreateProto(AVAnnotHandlerDoClickProc,
        &myDoClickProc);
    newHandler.GetType = ASCallbackCreateProto(AVAnnotHandlerGetTypeProc,
        &myAnnotGetType);
    AVAppRegisterAnnotHandler(&newHandler);
    return;

Regarding the selection issue, I believe this could be solved by getting the original handler that is registered for Text annotation types, i.e. AVAppGetAnnotHandlerByName(textAnnot) in your SDKInit function.
Your approach has given me an idea to solve my own problem, here's hoping it works.

Similar Messages

  • HOW to enable oracle advance compression for EXIST partitioned table

    Hi All,
    I have to enable oracle advance compression for existing table which PARTITION BY RANGE then SUBPARTITION BY HASH.
    ORacle version: 11.2.0.2.0
    Please provide me any relevant doc or any exp.
    Thanks in advance.

    could not see any text for how to enable oracle advance compression for EXIST partitioned table.RTFM.
    From the resource above:
    How do I compress an existing table?
    There are multiple options available to compress existing tables. For offline compression, one could use ALTER TABLE Table_Name MOVE COMPRESS statement. A compressed copy of an existing table can be created by using CREATE TABLE Table_Name COMPRESS FOR ALL OPERATIONS AS SELECT *. For online compression, Oracle’s online redefinition utility can be used. More details for online redefinition are available here.
    "

  • How to enable OHS compression/cache for OBIEE

    Hi i have installed OHS (11.1.1.7) and webcache on OBIEE 11.1.1.7. Does any one know how to enable/configure compression/cache for OBIEE analytics? Also how to validate if compression is working?

    Hi Anke,
    all tables that have been created in V9.7 with attribute COMPRESS YES will be compressed statically .
    db2 " select count(*) , rowcompmode from syscat.tables group by rowcompmode "
    After the upgrade to 10.5 all tables created with attribute COMPRESS YES will get rowcompmode='A' but old tables created with V9.7 will stay with rowcompmode='S' .
    You can change tables from  rowcompmode='S' to rowcompmode='A' via  ALTER TABLE . After this all new pages or old pages that are touched will be adaptively compressed. But old pages that are not touched will only be static compressed. To get all pages of an existinbg table adaptive compressed you need to move data. For example with DB6CONV.
    Regards
                   Frank

  • How to change the permission of a folder of a website hosted on Microsoft Azure. I would like to know how to enable read write permission for this folder

    How to change the permission of a folder of a website hosted on Microsoft Azure. I would like to know how to enable read write permission for this folder
    Regards,
    John

    Hi,
    Please try to setting Folder Permissions on Web Publish, and then deploy it with Web Deploy, as far as I know, if we do that, Web Deploy will use the SetAcl operation to change permissions. Please have a look at the article below.
    #http://sedodream.com/2011/11/08/settingfolderpermissionsonwebpublish.aspx
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to enable file size 2GB for linux RHEL4.0

    Hi
    I am on oracle 9.2.0.6 on linux RHEL 4.0. How do i enable large file size for filesystems.
    When i query ulimit -a ulimit -f it is returning me unlimited.
    But my database listener crashed as listener log file reached 2gb in size.
    I couldnt find how to enable the largefile size for the filesystem.
    Thanks
    SV

    Are you sure that the filesystem is limiting your listener log file size?
    Please try to concatenate some lines into the logfile and see if the filesystem prevents it. I expect you to find out that the limit is only with the listener.
    In any case, run a weekly/monthly job that creates an empty log file.
    If the problem is with ext3 then you should check with someone more experienced because it does not sound to me like the proper (or default) behavior of ext3.

  • HT3986 Does anyone know how to enable the "Delete" key for logging on the Windows 7 partition on the latest iMac, via the latest Apple wireless keyboard? Many Thanks

    Hi All
    Does anyone know how to enable the "Delete" key for logging on the Windows 7 partition on the latest iMac, via the latest Apple wireless keyboard - the standard wired apple keyboard works fine via this key but not the new wireless keyboard?
    Many Thanks

    Holy crap, this fixes the issue.  At least temporarily it has.  I should add that my issue was single finger forward/back swipe stopped working on the magic mouse in Firefox since Mavericks came along.  I have been fighting this since I upgraded to Mavericks a few months ago.  Thank you, tbirdvet.  You have no idea how much easier you just made using my iMac again.
    Message was edited by: wadems

  • How to enable the code assist for annotation

    Hello
    i downloaded and installed netbeans 6.7.1, i found it doesnot support code assist for annotation in java Editor, when i write down @, nothing display,who can tell me how to enable this function, when i write @, the pop up menu show me the possible annotations.
    thanks

    Karandeep,
    You can apply the restriction using below approach in OAF.
    Step 1 - Modify your VO as below.
    SELECT hrorg.organization_id, hrorg.name, hrorg.date_from, hrorg.date_to
    FROM hr_all_organization_units hrorg, pa_all_organizations paorg
    WHERE paorg.organization_id = hrorg.organization_id
    AND paorg.pa_org_use_type = 'EXPENDITURES'
    AND NVL (paorg.inactive_date, SYSDATE) >= SYSDATE
    AND nvl(paorg.org_id, -1) = :1
    AND TRUNC(SYSDATE) BETWEEN hrorg.date_from and NVL(hrorg.date_to,TRUNC(SYSDATE))
    ORDER BY UPPER(NAME).
    Step 2 - Get the org_id using
    String orgId = pageContext.getOrgId();
    OAViewObject vo = getTestVO1();
    vo.setWhereClauseParam(0,orgId);
    vo.executeQuery();Regards,
    Gyan

  • How to enable a partner application for Single Sign-On?

    Can someone please advise me on how to enable my existing J2EE web application for the Oracle Single Sign-On?
    My requirement is i want to provide the single sign-on authentication service to my J2EE web application. For this, I would like to make my application as a partner application similar like the OracleAS Portal.
    I am using Oracle 10g ( OralceAS, Oracle Infra, OID ...)
    I found the following service/APIs which Oracle provides. I am not sure which one is suitable for me.
    1. mod_osso ( Static)
    --- In this case, I have to make a entry in mod_osso.config file to protect the URL. should I have to register the URL again through single sign on admin page ("Administer Partner Application") after make a entry in config file?
    2. mod_osso ( Dynamic directive)
    -- in this case, I have to modify the code by providing the directives like 401, 499.. etc. So i don't prefer this as i don't want to touch my app.
    --If I go with this option, should i have to register the URL with Single sign on server through SSO admin page ( as mentioned in the above step#1) ?
    3. SSO SDK
    - Since it was deprecated and need java coding, i am prefer this option.
    -- however, if i go with this option, i will develop code by using SDK. in this case i need to register the URL in SSO server through admin page.. am i right?
    Note:- OSSO server integrated with Active Directory for the authentication.
    Thanks,
    -Senthil

    sharon38_74 wrote:
    they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?Your application need to act like a proxy. You can invoke a HTTP request programmatically using java.net.URLConnection. You can set request headers using URLConnection#setRequestProperty(). Also see the API docs: [http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html]. You only need to know the header field name where to set the Base64-encoded value in. You need to Base64-encode the value yourself.

  • How do I select multiple contacts for an e-mail?

    Using an iMac and wondering how to send an e-mail to multiple people in my contact list without having to open the contact list every time I select a name.  It would be nice if I could just open the contact list and select multiple people for the same e-mail.  Does anyone know how to do this?

    Hi there Kathy, The easiest way is Window (along the menu bar) > Address Pannel, then you can select multipul contacts and then click the "To:" Button in the top left of the window.
    (Tip: You can use comand and click to select multipul at once, then click the "To:" button in the top left)

  • Gatos - how to enable s-video output for ATI

    i need to make s-video work on my laptop (want to connect laptop to big screen to present things - unfortunately this screen has no VGA but s-video)
    in [extra] there is atitvout that should do this and also do so on my old computer (ATI mach64 chipset)
    atitvout does not work on my thinkpad a31p - it does not recognize the card correctly and fails. for x.org i use the radeon driver and this works fine. it's a ATI FireGL 7800 that works fine with the "RV200" driver. but "radeon" does not have s-video output as far i know - no options how to enable s-video-out
    after a long search on the internet, reading that most users that have my laptop never tried to make s-video work, i found GATOS:
    under:
    http://gatos.sourceforge.net/theater_out.php
    there is a module that, if i understand it correctly, should make s-video work
    what i don't know:
    - how do you build this driver?
    - how do you use it?
    (anyone able to make a pkg work with newest xorg?)
    nowhere documented is how to use it with xorg >6.8.0
    anyone can help me?

    atitvout just works with the vesa driver ...
    and try the option "atitvout -f t" (and remember to put the tv connected before booting)
    but the gatos drivers would be much better

  • How to enable a font family for SAPScript

    We want to enable a font family "JPMINCHO" so that we can use it in our SAPscript. When we are trying it from SAP Script font maintenance (SE73) is not allowing us to enable it. Our SAP version is ECC 6 on DB2. Can anyone suggest " how to enable a font family" from SE73 or anyother method for enabling it ?

    in SE71 only u can define ur font .
    if u want same font for whole paragraph go  to paragraph format.otherwise go for charactor format.
    down u ll see some tab like standard font tabs and outline
    for font family go clik on font and chose ur fotn family.

  • How to enable SSL optimization only for a single remote WAE and specific website?

    Hi guys.
    I have to enable SSL optimization for a specifc HTTPS website only and for a specific remote site only (branch office).
    The scenario is as follows:
    Multiple sites connected via a MPLS cloud. Each site has its own WAE device (module or appliance).
    There is a central manager and core WAE in the main site (central site).
    There is a website accessed via HTTPS by all the remote sites. This specific website is hosted within the main site.
    For only a specific branch office (remote site) we want to enable SSL optimization for this specific website.
    I saw this great and useful doc, but I still have some concerns.
    https://supportforums.cisco.com/docs/DOC-16452
    Basically, according to I see, I should do the following if I want to enable SSL optimization with the entire environment:
    - export the certificate and keys;
    - enable secure store in the central manager;
    - In the remote and core WAE, Check "initialize CMS secure store" and "Open CMS Secure Store";
    - In the core WAE, import the CA certificate (upload PEM file);
    - In the core WAE, create the SSL Accelerated Service by:
        --importing the client certificate and the key;
        -- Match interesting traffic;
        -- Put the SSL Acc Service in service;
    - Finally, make sure SSL acceleration is enabled in both remote and core WAE.
    The concerns:
    I only need to enable SSL optimization for a specific location accessing a specific website.
    Should the steps above work fine If I enable the SSL service for this specific website in the core WAE and enabling secure store only in a single remote site (brach office)?
    how will the other remote locations behave?
    Will they access the website normally with no SSL optimization even passing thru the core WAE?
    What about the other SSL sites which have no certificate? They will be treated as normal HTTPS with no optimization, right?
    If the site uses proxy, will any flow be impacted?
    If the steps above do not fit my case, how can I configure SSL optimization for only one remote WAE?
    Thanks in advance.
    importing  the client certificate and key (client.crt and client.key exported from  the Web server - See more at:  https://supportforums.cisco.com/docs/DOC-16452#sthash.3BKz05zU.dpu

    Hi guys.
    I have to enable SSL optimization for a specifc HTTPS website only and for a specific remote site only (branch office).
    The scenario is as follows:
    Multiple sites connected via a MPLS cloud. Each site has its own WAE device (module or appliance).
    There is a central manager and core WAE in the main site (central site).
    There is a website accessed via HTTPS by all the remote sites. This specific website is hosted within the main site.
    For only a specific branch office (remote site) we want to enable SSL optimization for this specific website.
    I saw this great and useful doc, but I still have some concerns.
    https://supportforums.cisco.com/docs/DOC-16452
    Basically, according to I see, I should do the following if I want to enable SSL optimization with the entire environment:
    - export the certificate and keys;
    - enable secure store in the central manager;
    - In the remote and core WAE, Check "initialize CMS secure store" and "Open CMS Secure Store";
    - In the core WAE, import the CA certificate (upload PEM file);
    - In the core WAE, create the SSL Accelerated Service by:
        --importing the client certificate and the key;
        -- Match interesting traffic;
        -- Put the SSL Acc Service in service;
    - Finally, make sure SSL acceleration is enabled in both remote and core WAE.
    The concerns:
    I only need to enable SSL optimization for a specific location accessing a specific website.
    Should the steps above work fine If I enable the SSL service for this specific website in the core WAE and enabling secure store only in a single remote site (brach office)?
    how will the other remote locations behave?
    Will they access the website normally with no SSL optimization even passing thru the core WAE?
    What about the other SSL sites which have no certificate? They will be treated as normal HTTPS with no optimization, right?
    If the site uses proxy, will any flow be impacted?
    If the steps above do not fit my case, how can I configure SSL optimization for only one remote WAE?
    Thanks in advance.
    importing  the client certificate and key (client.crt and client.key exported from  the Web server - See more at:  https://supportforums.cisco.com/docs/DOC-16452#sthash.3BKz05zU.dpu

  • How do you select multiple contacts for transfer to another.  BT device?

    I Am trying to send specific contacts to the phone book on a Panasonic  'link to cell' phone.  How does one select specific contacts and then send them to the BT paired phone?

    Hello Harvey102
    The Bluetooth for your iPhone does not connect to a computer and is for headsets and keyboards. If you want to share it with your computer, you would need to set up a sync or you can share the contact by emailing it and then go to the computer and download it to your computer.
    Contacts at a glance
    http://help.apple.com/iphone/7/#/iph3e0ca2db
    Regards,
    -Norm G.

  • How to enable selection or pages to print just portions of a website. Only all is active.

     A few days ago I posted a question "how do I  enable "selection or pages" to print just portions of a website. Only "all" is active. I received an email from the Canon Community that said Click here to view the reply but it just brings up "error 404 page not found." In internet explorer they're active but not in Google. Any ideas? I'm using Windows 7. Thanks in advance

    For ease of updating and publish it is better to build all your sites on separate domain files.....
    http://iwebfaq.org/site/iWebMultiplewebsites.html
    When publishing to MobileMe its not so easy to not publish a page or two.
    What you can do is create a second site on the same domain file and drag the pages you don't want to be seen down to this. They will be published but will not be seen on the website as their files will be in a different folder in Finder/Go/iDisk/My iDisk/Web/Sites.
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • TS3276 how does one select a folder for an outgoing email, prior to sending out that email?

    I would like to know what I need to do to select a folder for my outgoing emails before I send them. In other words, if I am sending a message to someone, Outlook has the option to select the folder where you would like to save the outgoing email to. That way, you are able to document all of your important outgoing emails. I was wondering if Apple mail had the same option. I know you can set rules up, the challenge is that the rules do not always apply depending on the email messages.
    Thank you for your assistance.

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

Maybe you are looking for

  • Problems with Adobe Acrobat 9 Standard on Windows 7

    used to have this on my Window XP; now Windows 7 computer and tried to download Adobe Acrobat 9 Standard. It not only does not work, I cannot use the Adobe Acrobate Reader which was already on the computer. Any help would be appreciated.

  • Problem opening a project after is saved

    Hi guys; I'm not sure what I'm doing wrong here. I record all my tracks (drums, bass, a few guitar tracks, etc...) Then I'm done and I save it to a folder in logic. Great. But when i re-open the project, only the drum track is in the arrange window.

  • Calling XI interfaces via Java

    Hi All, What is the method to call a Interface in XI via Java? Regards, Keerti

  • DISP_E_BADINDEX on "client" pc?

    Hi, I am developing an application that uses the crystal report viewer to show some crystal reports with parameters. they were developed in CR2008. they all work fine on the development pcs, however when i install on pcs that arent used for deveopmen

  • How to suppress Lookup transformation no-match output if all rows match.

    Hi. I have a Lookup Transformation that sends its matched output to an OLEDB destination and its no-match output to a flat file destination. The Lookup Transformation is configured to "Redirect rows to no match output" when there are no matches. The