Acrobat SDK and MFC

Hi,
sorry for this noob questions, I have just graduated, and have no experience with MFC or the Acrobat sdk.
I have tried for some while to get a dialogbox opened and have followed the plugin apps developer guide and this guide http://www.adobeforums.com/webx?128@@.3bc2c0c7 , but I get an error message, "Assertion failed", every time I try to initialize the window. I have managed to localize where it fails. I can't seem to get hold of the modal parent using:
AVDoc avDoc = AVAppGetActiveDoc();
hParent = WinAppGetModalParent(avDoc);
My question is, what am I doing wrong? :P
And is there an other way to get hold of the handle for the modal parent?
best regards
Simen

The plug-in should go in your Acrobat\plug_ins folder (If you have a default install of Acrobat, the full path would be C:\Program Files\Adobe\Acrobat 9.0\Acrobat\plug_ins, but this would depend entirely on your system).
You don't need to "open" a plug-in. Once you put it in the correct folder, Acrobat will automatically load it the next time Acrobat starts, as long as the plug-in is compatible with that version of Acrobat.
You should know that a plug-in written for Acrobat 6 is certainly not guaranteed to work with Acrobat 9 (and there is a good chance it may not).

Similar Messages

  • Acrobat SDK and the requirements of other Adobe Products

    Hi!
    I installed Adobe SDK and Adobe Acrobat Professional the previous year.
    The SDK is used in an MS Access solution. As I remember I had to instal Acrobat Prof in order to use th SDK.
    Now I am going to run that Access solution on one of my clients PC's.
    I have told them that I think they have to instal the Acrobat Prof for that case.
    But they want to install the "CS3 WEB PREMIUM" because of some other needs. Will the SDK function as well with this "package"??

    Leonard, could you expatiate a bit more on your approach?
    What do you mean my managing the views and handling them one at a time? Do you mean taking one page at a time and drawing a rectangle region?
    Actually, i didnt see any AVDrawRectanglePDDoc method...which would draw a rectangle in the entire document irrespective of pages..all we have are these foll.functions which takes pageView..n thts where i get stuck as my user defined region doest go beyond current page!
    AVPageViewDragOutNewRect (pageView, nX, nY, &deviceRect);
    AVPageViewRectToDevice (pageView, &pdUserSpaceRec, &deviceRect);
    AVPageViewDrawRect(pageView, &deviceRect);
    Can you please tell me exactly by using which method would this be possible?
    Bunch of thanks again!

  • Acrobat sdk and pdf library questions.

    hello everyone. i have some questions.
    is acrobat sdk can develop software without acrobat?  like pdf library sdk
    pdf library sdk and acrobat sdk can use same project?
    thank you

    This question belongs here: http://forums.adobe.com/community/acrobat/acrobat_sdk

  • Set PDF Document Properties Initial View by Acrobat SDK with C#

    Hi,
    Here am trying to set the PDF document initial view by the Acrobat SDK with C#.
    Here I am show my screen shot which properties I want to set.
    For this process I am referred Acrobat SDK and also following Adobe forums they also asked similar question.
    http://forums.adobe.com/message/3866361
    http://forums.adobe.com/message/4803264
    http://livedocs.adobe.com/acrobat_sdk
    And also I am used following C# code
          Acrobat.AcroPDDocClass doc = new Acrobat.AcroPDDocClass();
          doc.Open(@"D:\..\sap.pdf");
    doc.SetOpenInfo(1,1,"Fit Width");
          doc.SetPageMode(3);
          doc.Save(1, @"D:\..\sap.pdf");
          doc.Close();
    From the above code {doc.SetPageMode(3);} is working for set the page mode.
    But I am having problem in following code {doc.SetOpenInfo(1,1,"Fit Width");}
    Because it won’t work I do’t known, and there is no clear samples in the SDK reference document.
    So please give advice and clear sample code/syntax to meet above needs which are marked in red box.
    Document Properties - > Intial View
    Document Option
         Show: Bookmarks Panel and Page
         Page Layout: Continuous
         Magnification: Fit Width
    Window Options
         Show : Document Title
    Regards,
    Thirusanguraja Venkatesan

    ok thank you Test Screen
    I will try and let you know if i am done by automation .
    Regard,
    Thirusanguraja Venkatesan

  • Creating DLL using Acrobat SDK

    Hi,
    I want to create one DLL using Acrobat SDK and VS 2010 Win32. If i use this dll in our program it should show functions for opening pddoc, total number of annots, Can I do this using Acrobat SDK. I know we can create plug-in extension with .API.
    Please let me know can i do this using Acrobat SDK.
    Thanks,
    Kruthi

    Please use the forum for Acrobat SDK.

  • Will Acrobat SDK 9 contain support for XFA Forms?

    (the question applies to Acrobat SDK and Adobe SDK)
    I have been following the product differentiation -trying to read between the lines, so to speak, and make predictions- between Acroforms and XFA.
    My impression was that Acroforms were on their way out, and that the writing on the wall says: "upgrade to XFA or else!".
    Then, I was contacted by the company that distributes Adobe SDK and among other things I was told that XFA is really a third-party product (acquired by Adobe) and hence the Adobe SDKs do not support XFA.
    I suppose there is a separate SDK for XFA?
    -RFH

    I guess the answer is - it depends ;).
    If you are doing desktop-based XFA, then there are certainly parts of the Acrobat SDK that provide information about how to do so. If you are doing server-side, then you want the information about the LiveCycle Developer program and SDKs - since you won't be working with Acrobat in that case.
    In addition, details of the XFA language and associated parts (such as FormCalc) are provided in their own set of documentation.
    Leonard

  • Prerequisites for Acrobat SDK

    Hey! I just downloaded the Acrobat SDK and tried to run the samples for c#.
    The code breaks at  AcroExchApp = CreateObject("AcroExch.App") with error: "Cannot create ActiveX component"
    It is caused by the interop.Acrobat.dll and it means it could not find acrobat.dll.
    I wanted to know what are the prerequisites for the SDK? I could not find any documentation telling this with the SDK.
    Regards,
    Kangkan
    [signature deleted by host]

    What do you mean by "edit"?  In general, yes, it should be fine – but I'd need more specifics.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Tue, 3 Jan 2012 07:34:18 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Prerequisites for Acrobat SDK
    Re: Prerequisites for Acrobat SDK
    created by sidharthnitj<http://forums.adobe.com/people/sidharthnitj> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4115482#4115482

  • How to use Acrobat SDK with C# and how much is it?

    I just want to know these info because I'm new here and I can't seem to find any answers to these here in the forums and on the Documentation.

    Hi,
    The Acrobat SDK is free and can be downloaded from http://www.adobe.com\devnet\acrobat. Please note to use the SDK you require Acrobat/Reader to be installed.
    As for using it with c#, there are a number of sample files in the SDK that can be used to learn. There is also documentation online and in the SDK.
    Hope thie helps
    Malcolm

  • Install Acrobat Portfolio SDK and plugins in your Flash Builder programming environment

    Hello, Experts
        how would I go about introducing Acrobat Portfolio SDK and plugins to the Flash Builder programming environment ?
    -Alex

    https://learn.adobe.com/wiki/display/PDFNAV/Installing+Acrobat+Portfolios+SDK

  • Add Digital Signature Using C# and Acrobat SDK

    Hi everybody!
    Please, how can I digitally sign PDF documents using Acrobat Professional 8 API and C# language?
    I know that I need use JavaScript APIs (IAC) but I can't find anything really helpful in the Acrobat SDK Documentation. Could anyone post a sample of how use javascript manipulation inside C# (Framework 2.0), or give me a direction?
    Thank in advance!

    Hi Felipe,
    when i am signing the document.
    I believe i am missing something in my code. After executing the code to sign, when i open it i get "The following signature fields are not signed".
    Please let me know where i m doing wrong?
    Here is my VB.NET Code
    Dim gapp As Acrobat.CAcroApp
    Dim gpddoc As Acrobat.CAcroPDDoc
    Dim jso As Object
    gapp = CreateObject("acroexch.app")
    gpddoc = CreateObject("acroexch.pddoc")
    If gpddoc.Open("C:\Test1.pdf") Then
    jso = gpddoc.GetJSObject()
    jso.SetUserPassword("'testpassword12'")
    'jso.ShowMyMessage("SetUserDigitalIDPath")
    jso.SetUserDigitalIDPath("'c:\\DrTest.pfx'")
    jso.app.execMenuItem("ADBESDK:AddSignature")
    jso.AddSignature(jso)
    gapp.Show()
    and here is the javascript
    // password to use the digital signature
    var sigUserPwd = "UNKNOWN";
    // to test the sample without user input, specify:
    // var sigUserPwd = "testpassword";
    // path to the digital signature file
    var sigDigitalIDPath = "UNKNOWN";
    // to test the sample without user input, specify:
    //var sigDigitalIDPath = "/C/DrTest.pfx";
    // other variables the user can modify
    var sigHandlerName = "Adobe.PPKLite";
    var sigFieldname = "sdkSignatureTest";
    var sigReason = "I want to test my digital signature program.";
    var sigLocation = "San Jose, CA";
    var sigContactInfo = "[email protected]";
    /* Add a menu item for AddSignature */
    app.addMenuItem( { cName: "ADBESDK:AddSignature", cUser: "Add My Signature", cParent: "Advanced",
    cEnable: "event.rc = (event.target != null);",
    cExec: "AddSignature(event.target)" });
    // main function
    AddSignature=app.trustedFunction(function (doc)
    app.beginPriv(); // explicitly raise privilege
    // if sigDigitalIDPath is not spcified, ask for user input
    if(sigDigitalIDPath == "UNKNOWN"){
    var cResponse = app.response({
    cQuestion: "Input your digital ID path:",
    cTitle: "Digital Signature",
    cDefault: "/C/DrTest.pfx",
    if ( cResponse == null) {
    app.alert("No input.");
    return;
    else
    SetUserDigitalIDPath(cResponse);
    // if sigUserPwd is not spcified, ask for user input
    if(sigUserPwd == "UNKNOWN"){
    var cResponse = app.response({
    cQuestion: "Input your password:",
    cTitle: "Digital Signature",
    cDefault: "testpassword",
    if ( cResponse == null) {
    app.alert("No input.");
    return
    else
    SetUserPassword(cResponse);
    // create a new signature field
    var signatureField = AddSignatureField(doc);
    // sign it
    if(signatureField) Sign(signatureField, sigHandlerName);
    app.endPriv();
    // create a signature field in the upper left conner with name of sigFieldname
    function AddSignatureField(doc)
    var inch=72;
    var aRect = doc.getPageBox( {nPage: 0} );
    aRect[0] += 0.5*inch; // from upper left hand corner of page.
    aRect[2] = aRect[0]+2*inch; // Make it 2 inch wide
    aRect[1] -= 0.5*inch;
    aRect[3] = aRect[1] - 0.5*inch; // and 0.5 inch high
    var sigField = null;
    try {
    sigField = doc.addField(sigFieldname, "signature", 0, aRect );
    } catch (e) {
    console.println("An error occurred: " + e);
    return sigField;
    // define the Sign function as a privileged function
    Sign = app.trustedFunction (
    function( sigField, DigSigHandlerName )
    try {
    app.beginPriv();
    var myEngine = security.getHandler(DigSigHandlerName);
    myEngine.login( sigUserPwd, sigDigitalIDPath);
    sigField.signatureSign({oSig: myEngine,
    bUI: false,
    oInfo: { password: sigUserPwd,
    reason: sigReason,
    location: sigLocation,
    contactInfo: sigContactInfo}
    app.endPriv
    } catch (e) {
    console.println("An error occurred: " + e);
    // set a correct password for using the signature, so you can quietly sign a doc.
    function SetUserPassword(pwd)
    sigUserPwd = pwd;
    // set path to the digital signature file
    function SetUserDigitalIDPath(idPath)
    sigDigitalIDPath = idPath;
    Sumit

  • Sticky notes and comment funcation is not work in IAC of acrobat SDK

    Hi,
       My name is LuDa and I working on an application which use C# and the Acrobat SDK API chang the interface of Acrobat  but I finded when I open the PDF file in my application the sticky notes , add line notes and all the comment funcation is not vaileble it is nowork .if I want the sticky notes and other comment funcation work on my application which used the acrobat API
    so could you tell me how can I do that .
    [email protected]
                                                                                                                                                                                    Thanks
                                                                                                                                                                                    mailto:[email protected]
                                                                                                                                                                                    skyper : liuyuda6

    Open Acrobat. Not available in your own window.

  • A question about thread safety and the Acrobat SDK

    Hi All,
    On page 12 of this FAQ: http://www.adobe.com/devnet/acrobat/pdfs/Acrobat_SDK_developer_faq.pdf
    It says that Use of any Acrobat product in a multithreaded way is technically impossible.
    I'm currently writing a command line application to perform some basic data gathering on a PDF file. The Application only makes use of a PDDoc object, and never calls on any other kind of object (i.e. AVDoc).
    The application itself is not multithreaded. All of the logic runs in a single thread.
    However, the application will be called (via the command line) from another application that /is/ multithreaded. I think that this might be fine, but I wasn't sure. In this case, would this count as a single thread, but spread across multiple processes? And if that is the case, would that be OK with the SDK?
    Or would having multiple invocations/calls into the Acrobat DLLs cause the same issue as a multi-threaded application?
    Unfortunately, I haven't done a lot of work with threads before. This might be a very silly question.

    The application would be called from a perl script that is used to automate several tasks. The app is a console application, written in C# w/ the Acrobat COM components, and Visual Studio 2005.
    The console application uses the Acrobat SDK to instantiate a PDDoc object, open a PDF, and get information about the document. It then returns results back to the console.
    So, the perl script just calls: "C:\pdfinfo.exe -f=myPdf.pdf" and pipes the result to a log file.
    In this case, it never creates a new instance of the Acrobat application, but it does use the SDK.
    The reason that I was concerned was that the perl script is multi-threaded. I wasn't sure if acrobat was just sensitive to multiple threads inside a single process, or if it was unable to handle multiple processes as well.
    PDL's answer suggests that I should be fine as long as a new process is started each time. This is good to hear.

  • Hi I want to get an acrobat aplication and SDK for converting .tiff and .jpg to OCR PDF and, add wat

    Hi I want to get an acrobat aplication and SDK for converting .tiff and .jpg to OCR PDF and, add watermark and reducing size of files, all in one product

    Yes, Acrobat Pro can do that. The SDK is free t o download.

  • Acrobat SDK: How to get events and write event handlers in c#

    I am trying out to get events from a pdf doc and handle it in my c# code with the samples that come with Acrobat-SDK. 
    I am yet to understand how I can do it. I am yet to discover the class that provides me the events. All the classes currently expose methods only. It might be that I am missing something for sure.
    Can somebody help?
    My use case is:
    the user will open a pdf doc and my application (or my app can trigger opening the pdf doc)
    when the user selects some text from the pdf doc, my app should get the event
    My event can handle the selection and get the selected text.
    Put a bookmark on the selection in the pdf doc (with additional attributes)
    the pdf doc retains such bookmarks when the pdf is saved.
    bookmarks in the pdf should be available for edit.
    A different app/code should be able to parse and retrieve these bookmarks along with the additional attributes of the bookmark.
    I hope, I have not asked too much.

    There are no “event handlers” for C# in the Acrobat SDK.  You will have to “poll” for things such as selected text.
    Also, I don’t know what sort of “additional attributes” you are thinking about, but that may or may not be possible from C#.

  • Licensing and Deployment of Acrobat SDK

    I am new to Adobe and have a question regarding licensing of Acrobat X PRO and Acrobat SDK. I would like to create a distributable form with
    Acrobat X Pro and setup for users to complete the fillable Form with Acrobat reader and the completed form details will be submitted to a
    network folder (FDF). I then want to programatically pickup the submitted form details, possibly using the FDF toolkit to parse the details,
    and then programatically fill the form using the acrobat SDK.  A desktop copy of Acrobat X PRO and Acrobat X SDK will be deployed on a
    workstation on my network. The forms will be filled in with Acrobat reader on other workstations on the same network and on external
    workstations with access to the network folder used for submitting the completed forms.  Would this contravene any licensing restrictions?

    You only license the product--not the use of the forms. You should fill out a distribution agreement if you distribute Reader to end users.
    Ben

Maybe you are looking for

  • Why can't I view ALL my folders when I save a document?

    Here's the skinny. I work with dozens of documents and sub folders every day. When I save a document, the list of locations I am given to choose from is incomplete. I can choose a folder, but not the correct subfolder. Is there a way I can select the

  • Hey, I have an unopened iPad mini that I won at work and I'm wondering if there's an upgrade option where I can exchange this for an iPad mini with retina display? Thanks

    Hey, I have an unopened iPad mini that I won at work and I'm wondering if there's an upgrade option where I can exchange this for an iPad mini with retina display? Thanks

  • Lion bugs

    Hello community, I've been testing Lion (10.7.1) since it came out and have made the following notes on problems I've encountered along the way: Occasionally the keyboard stops working.  The function keys continue to work (ie the volume brightness et

  • Query Regarding Materialized View

    Hi, I have materialized view mv_test which is derived from a base table test. My question is if I modify any of the column width of table test,do it effect on materialized view refresh?If so what are the procedures I need to follow if I want to modif

  • Line deflection on Zoom in

    This problem occurs on both Windows and Mac platforms. Using Adobe CS1 CS2 & CS3. Windows using CS3 with windows XP operating system. Mac using 10.5.4 2 GB ram. When the object is filled the view can be magnified to the max. When switched to outline