Calling a method in acrobat plugin as COM obj method

Hi all,
I want to call a method from my acrobat plugin as a COM objects method. Can i import i.e. add reference of plugin and call the perticular method which accepts two PDDoc parameters. For this I can use any platform (JS, C#, VB.net or anything). Please help me out.

Consider I have exported the below plugin method via COM as Irosenth mentioned above, will I be able to see the highlighting happening visually in the PDF document which is currently active when I call this COM method from my C# Winform application?
Also consider I have the Adobe Reader plugin license, will this functionality work in Reader?
static ACCB1 void ACCB2 HighlightWord(void *data)
    DURING
    //Create a HiliteEntry object and set its attributes
    HiliteEntry hilite;
    hilite.offset = 3;
    hilite.length = 1;
     //Get the page number of the current page view
    AVDoc currentAVDoc = AVAppGetActiveDoc();
    PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);
    AVPageView currentPageView = AVDocGetPageView(currentAVDoc);
    ASInt32 pageNum = AVPageViewGetPageNum(currentPageView);
    //Highlight the tenth word
    PDPage pdPage = PDDocAcquirePage (currentPDDoc, pageNum);
    PDTextSelect textSelection = PDTextSelectCreateWordHilite(pdPage, &hilite, 1);
    AVDocSetSelection(currentAVDoc, ASAtomFromString("Text"), (void *)textSelection, true);
    AVDocShowSelection (currentAVDoc);
    PDPageRelease (pdPage);
    HANDLER
        AVAlertNote("Error highlighting word");
    END_HANDLER

Similar Messages

  • Call JavaScript function from Acrobat Plugin

    Hi All,
    I want to call JavaScript function from Acrobat Plugin? Where is to write JavaScript function in Acrobat SDK? Please reply..
    Thanks in advance..

    Hi Malkyt,
    Thanks.. where is to write JavaScript code in the application..
    function GetWelcome()
    alert("Welcome");
    this above code. how to use this javascript code to plugin application.
    static ACCB1 ASBool ACCB2 AVPageViewMouseClick (AVPageView pageView, AVDevCoord xhit, AVDevCoord yhit, AVFlagBits16 flags, AVTCount clickNo, void *data)
    char jsscript[200];
    AFExecuteThisScript (pddoc, jsscript, NULL);
    i want to display welcome message of JS file.. give me step to perform above task.. Please reply...

  • How to export acrobat plugin as a COM component

    Hi all,
    I want to export acrobat plugin and its methods as a COM objet so i could be possible to call methods from ouside of acrobat.
    Please give me any solution. I am not sure that whether it is possible or not. I am not getting any correct way to implement this.
    Please help me.

    Hi,
    maybe you should create com-object wich will call acrobat plugin via LoadLibrary ot GetModuleHandle?
    OR
    http://forums.adobe.com/thread/580494?tstart=0

  • Plugin for Acrobat Reader cannot use DigSig methods?

    Hi,
    I have an acrobat plugin created using acrobat sdk 9, registered using PubSec. Now, i want to make it run for adobe reader aswell. but i read the following somewhere:
    You may not use the Adobe Reader key to develop or enable your plug-in or any other software or hardware to perform or enable any of the following:
    Add functionality to Adobe Reader that is substantially similar to functionality in commercially available Acrobat products
    Accept navigational commands from an application other than Adobe Reader
    Create, remove, or modify any Enabling Rights (including but not limited to permissions added to a PDF file with a product such as Adobe LiveCycle™ Reader Extensions (formerly Adobe Reader Extensions Server)
    Save or modify any Acrobat file (including without limitation PDF, FDF, or annotation)
    Extract and save any content from a PDF file (other than submitting form data to a remote server)
    Use any APIs from the Forms or DigSig Host Function Tables (HFTs)
    Modify the appearance of Adobe Reader
    Remove the menu item that calls up the "About" screen in Adobe Reader
    Implement a Replacement File System (RFS) for Adobe Reader"
    Does this mean that i cannot use a plugin registered using DigSig HFT   OR    that i cannot use DigSig methods in my plugin, which i have used generously?
    If the latter, then does this mean i'll have to remove all DigSig method usage from my plugin?
    Thanks

    It means you need a special Reader-enabling license.  When you send in your Reader IKLA (integrated key license agreement) you need to specify that you are doing something related to DigSig so that they can send you the revised agreement and pricing model.

  • I guess the problem come from me or I really need those contacts before he calls me for it. I'll try some method that I got from some responders on your support website. Do you have or can you recommand any software that can solve this problem?

    I guess the problem come from me but I really need those contacts before he calls me for it. I'll try some method that I got from some responders on your support website. Do you have or can you recommand any software that can solve this problem?
    One more thing. I just update my iphone that my boss gave to me but it seems to be like it giving me some trouble. My iphone was updated not too long and was successful. I try to lock into it and it telling me emergency call. I plug it to my itune and it telling me that the sim card is not valid or supported. So I inserted my sim card that I usually use to call and it still saying the same. Please help me get into it.

    And as far as paying for phone support, here are a few tips:
    If you call your carrier first and then they route you to Apple, you usually don't have to pay for phone support.
    If you are talking to Apple and they ask you to pay a support fee, ask if you can get an exception this time.  That usually works once, but they keep track of the times you've been granted such an exception.
    If you still end up paying the support fee, that fee only applies if it's not a hardware related issue.  In other words, if it can be fixed by just talking over the phone and following Apple's instructions, then the fee applies.  But if your device is deemed to have a hardware failure that caused the issue, then the fee should not apply, and you can ask for it to be waived after the fact.
    This forum is free, and almost all of the technical support articles the Apple tech advisors use are available on this website.  Literally 99% of what they can do over the phone is just walking you through the publicly available support articles.  In other words, you're paying the fee to have them do your research for you.  It's like hiring a research consultant to go look stuff up in the public library so you don't have to.  You're capable of doing it; you'd just rather pay someone to do it for you.
    It's like Starbucks.  You know how to make coffee.  Everyone knows how to make coffee.  And Starbucks coffee isn't any better than what you could make at home for far less.  But you want the convenience.  So you're really paying a convenience fee.  Milk is more expensive at 7-Eleven than it is at the grocery store... because it's a convenience store.

  • How to call GUI/Dialog in Acrobat sdk Plugin

    How to call GUI/Dialog in Acrobat sdk Plugin using VC++ here is my code
    ACCB1 void ACCB2 MyPluginCommand(void *clientData)
      HMODULE hAppInst = GetModuleHandle(NULL);
      DialogBox(hAppInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NULL);
      HWND hWnd = ::CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc);
      ::ShowWindow(hWnd, SW_SHOW);

    You can, with care, use Windows API calls in a plug-in. But you have to understand the process of loading resources. In particular, the calls you use try to load resources that belong to the main executable, which is Acrobat.exe. Plug-ins have their own instance handle, which is conveniently stored in gHINSTANCE. 
    In certain cases, especially modeless dialogs, there may be extra calls to make things work properly.
    You do need to know how to use the Windows API, and your sample lines seem confused, unless you intended to first display a modal dialog then open the same dialog as modeless. That's something for another forum,

  • Talking to Internet Explorer embedded Acrobat Reader via COM

    Hi all. I'm developing an Internet Explorer BHO (browser plugin) and was wondering whether it's possibly for me to communicate with Acrobat Reader via COM. I have read through the SDK docs and it's not clear whether this is possible. I'm using unmanaged c++.
    I think if this can be done I think I will need to call get_document(IDispatch *p) on the webbrowser control, then using p->QueryInterface(...) to gain access to the Acrobat document. However, to do this I will need to pass in a REFIID to QueryInterface. As such I need to find some documentation on the supported COM interfaces and various IDs I will need to use.
    If anyone could point me in the right direction, that would be great.
    thanks,
    Zoltan!

    Thanks for your reply. We are writing a web annotation tool as an Internet Explorer plugin. The web annotation part of it is complete, and now we are looking at being able to make annotations on pdf documents loaded within the browser.
    Where can I find information about the limited APIs on the ActiveX control you mentioned? Do you think we should be looking at a different approach?
    thanks,
    Zoltan

  • How to access Acrobat Plugin using GetInterface?

    Hi
    I'm trying to access a C++ plug-in written for Adobe Acrobat from a C# program. Following is my code, which I found elsewhere in this forum (LINK).
    Type acroApp;
    acroApp = Type.GetTypeFromProgID("AcroExch.App");
    object oAcroObject = Activator.CreateInstance(acroApp);
    object[] param = new object[1];
    param[0] = "MyPlugin";
    object pluginRef = oAcroObject.GetType().InvokeMember("GetInterface",BindingFlags.Invoke Method, null, oAcroObject, param);
    Here, MyPlugin is the name of the plugin (without extension) which I've placed in the Acrobat plug-ins folder. But this way, InvokeMember returns a NULL object instead of the expected interface of my plugin.
    What am I doing wrong? Any help would be greatly appreciated.

    You don't do it that way.
    You need to use standard "inter application communication" methods such as (but not limited to): COM, DDE, shared memory, shared files, named pipes, etc.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 1 Feb 2012 20:20:23 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How to access Acrobat Plugin using GetInterface?
    How to access Acrobat Plugin using GetInterface?
    created by Sachintha81<http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4180327#4180327

  • Acrobat Plugin Memory Leak

    I am using the Acrobat 9.1.0 plugin under Firefox extremely heavily, so it is possible that nobody has stressed it to the extent that I have.  I have observed that there is a memory leak that manifests in various ways after viewing a few hundred PDF files. Occasionally Windows reports a memory shortage and suggests shutting down applications, but more often the problem manifests as applications hanging because they are unable to obtain the memory to call system services for display, or most common of all Firefox crashes.  The crash is caught by Firefox and has been reported to Mozilla support, but since the actual problem is in the Acrobat plugin there is not a lot that Firefox can do to handle this.
    How can I report this problem to the appropriate authorities?
    Although the problem is arising on PDF images that I am retrieving from the Library and Archives of Canada web site the easiest way to reproduce it is to take advantage of the web front-end that I have on my own site http://www3.sympatico.ca/jamescobban/database/Images1891.html.  Just click on "View Image" to load the first PDF image and then click on "Advance By" a few hundred times.

    This is a user to user forum. You can report to Adobe by either calling up Adobe support or logging the bug at :
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Problem with Acrobat PDFMaker Office COM Addin

    I have recently installed MS Office 2010 on my W7 system but find that the Acrobat addin for MS Word 2010 is not working -- it gives errors messages and recommends that I disable the addin.
    This all used to work fine with MS Word 2007.
    Is there anything that can be done about this problem. Is there an upgrade for the Acrobat PDFMaker Office COM Addin ?
    Gerry

    Kelly,
    Whilst the main reason for 64 bit Office is large and complex Excel files, significant performance gains have been found in other usage scenarios, such as with lengthy and complex Word documents (especially when using complex plugins such as EndNote). It is in users' interests to use 64 bit Office if they can - but this is only possible if all their plug-ins support 64 bit Office.
    I see Microsoft's document as a classic support driven response (or should I call it a cop-out) - there are compatibility issues with non-Microsoft software, so, to eliminate the support burden, we will steer you towards the lowest common denominator of installing 32 bit Office even if you have an x64 OS. Whilst this makes a great deal of sense, in that many users will see no advantage in 64 bit Office, there are plenty of users, including myself, who would see advantages from 64 bit Office but are being prevented from moving to 64 bit Office because third party plug-in providers have yet to make 64 bit versions available.
    The situation with 64 bit Office plug-ins mirrors the situation with 64 bit Photoshop plug-ins, but with one key difference. Photoshop CS4, CS5 and CS5.1 (same as CS5; the apparent version bump indicates it was installed as part of Creative Suite 5.5) default to installing both 32 bit and 64 bit versions on x64 versions of Windows. You can therefore pick and choose which version of Photoshop you use according to which plug-ins you need. I'm now in the fortunate position of having 64 bit versions of all but two of the plug-ins I use regularly. I start the 32 bit version of Photoshop CS5.1 if I need those plug-ins, but my default is the 64 bit version.
    Office 2010 requires you to choose between 32 bit and 64 bit; you cannot install both at the same time, and you cannot mix and match between different Office applications (so, for example, installing 64 bit Project 2010 alongside 32 bit Office Professional Plus 2010 is not supported and may cause problems - indeed, I'm not sure if the Project installer would allow you to install the 64 bit version if you had 32 bit Office applications already installed). This makes the unavailability of 64 bit versions of a single plugin that you require for one Office application a total bar to moving to 64 bit Office.
    Unfortunately, this creates a 'chicken and egg' effect - the apparent demand for 64 bit versions of Office plugins is reduced because the unavailability of 64 bit versions of a crucial plugin prevents a move to 64 bit Office. I, for one, have a clear intention to switch to 64 bit Office, and will not buy new products or pay to upgrade existing ones unless they support 64 bit Office. Many products that can hardly be said to be aimed at the Office power user have supported 64 bit Office for some while, including Dragon NaturallySpeaking 11.5 and 11.0.
    I wholeheartedly welcome the support for some 64 bit Office applications in Acrobat 10.1, but urge Adobe to provide complete support for 64 bit Office 2010. Currently, 64 bit versions of Visio 2010, Project 2010, Access 2010 and Publisher 2010 are not yet supported in PDFMaker. Hopefully this support will be forthcoming in a future quarterly update.
    There is a mistake in your post - 64 bit Outlook 2010 is supported in Acrobat 10.1's PDFMaker. The issue with Outlook in the blog post you linked to is that Outlook 2010 doesn't have Microsoft's Save as PDF functionality - but if you have PDFMaker, using PDFMaker is the best option anyway.

  • How to get page orientation in acrobat plugin?

    Is there any method in acrobat SDK or PDFLibrary to get the page orientation from the plugin
    the way we have PDPageGetRotate?
    Other doubts are:-
    - is it manually possible for the user to change the orientation of a page or its fixed at the time of creation of a PDF?
    - does the word quad changes when the user changes the rotation of a page?
    - does the word quad changes when the orientation of a page is changed?
    Also, is it possible to convert the word quad coordinates across the PDF page orientations??
    Let me know ASAP.
    Regards
    Anagha

    Hi Bill@VT, do you mean to say rotating a page changes the orientation of a page in PDF??
    Also, i observed that when a PDF page in portrait mode is rotated, the word quad's remain the SAME; however if i recreate the same PDF in landscape orientation, then the quads of the words CHANGES. I clearly want to know the difference between the two for every aspect like will the word finder and word quad's work the same for both orientation as well as rotation? I think the XY axes gets changed when orientation changes which makes the word quad change. Let me know your suggestions and detail explanation on this.
    Also, please address the questions raised in the 1st post.
    Thanks.

  • Two Adobe Acrobat Plugins In Firefox ... Want to Remove Outdated Plugin

    Creative Cloud Customer with all Adobe software current
    Windows 8 Pro 64 bit
    Adobe Acrobat Pro XI 11.0.2
    Firefox 19.0.1
    In looking at my Plugins, I notice that I have two Adobe Acrobat, one 11.0.0.379 and the other 11.0.2.0. The last one seems to match my Adobe Acrobat Pro version number. I assume the 11.0.0.379 is outdated?
    If I am correct in my assumption, how do I remove the the outdated plugin? Please be precise and detailed as I am still learning Windows 8. In the picture below, I have circled the plugin that I want to remove.
    I look forward to your assistance.

    Okay, well I just an interesting experience.
    Here's what happened:
    Deleted oldest program without remembering to deactivate first.
    After I uninstalled, I noticed that the program listings in the Control Panel were blank. That is, both the old and new versions were gone.
    In Firefox, the first entry of Adobe Acrobat 11.0.2.0 was gone, but the other listing of Adobe Acrobat 11.0.0.379 remained
    Thinking that I erred in not deactivating first, I used Adobe's Chat to reset my counter. The nice man asked me for my email and then my order number for Creative Cloud. After I logged into my Adobe account to retrieve the information, he promptly told me that he couldn't help me and that I needed to call back on Monday using a 1-800 number. I am puzzled why we bothered with the dance of email addresses and order numbers.
    Throwing caution to the wind, I decided to try to install Adobe Acrobat from my Creative Cloud account. The worst that happen is that it will fail to load.
    I successfully loaded Adobe Acrobat without difficulty. When I viewed the installed programs in the Control Panel, I saw that I had an outdated versions. See picture below.
    Intuitively, I would have expected programs downloaded from the cloud to be current.  So I went Help | Check for Updates
    I installed the updates. See picture below for Control Panel shot.
    Now, going back to Firefox, I am exactly at the starting point.
    In summary, the "older" version appears to stay regardless of whether Adobe Acrobat is installed or not. Perhaps it is attached to Adobe Reader XI. Or, perhaps, it's just there. Installing Adobe Acrobat XI Pro seems to add two programs to the list in the Control Panel. And it seems to have two Adobe Acrobat plugins in Firefox.
    I will call Adobe on Monday with regard to the Deactivate Issue. I have a hunch that it isn't not an issue. They might be able to tell that I uninstalled and reinstalled on the same computer.
    That's it for now.

  • How to execute acrobat javascript thorugh acrobat plugin???

    I need to perform a task using javascipt...but i am not able to run javascript from my plugin...I tried it using AFExecuteThisScript method given in  API but it asks for " _gAcroFormHFT"..How can i import HFT into my plugin???
    Is there any other method to execute a javascript from acrobat plugin??

    You need to declare a (global) variable something like:
    HFT gAcroFormHFT;
    Then initialise it in your plugin's PluginImportReplaceAndRegister method, something like:
    ACCB1 ASBool ACCB2 PluginImportReplaceAndRegister(void)
    gAcroFormHFT = Init_AcroFormHFT;
    return true;

  • Acrobat Plugin Can be involved in Real-time processing

    Hi,
    I am implementing an acrobat plug-in solution for color separation and generation of PRN file for the given PDF file.
    Is the Plugin Architecture is good for the real time processing and RIPPIng?  I have a doubt like the Acrobat Process
    is involved in exectuing the each and every plugin HFT functions, is that would be fine for my plug-in to respond
    in realtime?
    Please suggest me.
    Thanks & Regards,
    Abdul Rasheed.

    First and foremost, Acrobat can NOT be used on a server, right?  So this is going to be a user-invoked process, correct?
    Beyond that, what do you thin would be a problem?
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 21 Sep 2011 07:29:28 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Acrobat Plugin Can be involved in Real-time processing
    Acrobat Plugin Can be involved in Real-time processing
    created by skrasheed<http://forums.adobe.com/people/skrasheed> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3929688#3929688

  • Adobe Acrobat plugin worked before latest Firefox update. Now it crashes. Everything updated...still doesn't work.

    The latest firefox update occurred and suddenly my adobe acrobat plugin crashes. I've updated everything including my computer...it still doens't work.

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[How to clear the cache#w_clear-the-cache|Clear the Network Cache]]
    * [[Using the Adobe Reader plugin with Firefox]]
    * [[Opening PDF files within Firefox]]
    Check and tell if its working.
    -> Update All your Firefox Plugins
    * https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    * Restart Firefox

Maybe you are looking for