collab.showAnnotToolsWhenNoCollab = True Not Working in Acrobat 9

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default collab.showAnnotToolsWhenNoCollab = True Not Working in Acrobat 9

    I have a VB6 program that uses AcroExch.AVDoc.OpenInWindowEx to open a PDF document in our small app (similar to the ActiveViewVB sample). For Acrobat versions 7 and 8 we were able to enable the editing of comments (annotations) by getting the JSObject and executing:

    jso.collab.showAnnotToolsWhenNoCollab = True

    as documented in the SDK topic "Acrobat Interapplication Communication > Developing Applications Using Interapplication Communication > Using OLE > Using the JSObject interface > Working with annotations".

    In Acrobat 9 Pro running on WinXP SP3 when I single step that line in debug I go to the error handler for my Sub. Inspecting the VB Err object has Number = -2147417851 and Description = "Automation error
    The server threw an exception." I get a Microsoft crash notice about Acrobat a short while later.

    I've run a number of searches and haven't found any documentation indicating that you can't do this anymore. My app will be less useful if I can't do this. I've already logged this as a bug with Adobe but have no idea if they intend to fix it. Does anyone have any additional information or a work-around?
    S_Don_Walker@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Problem filling forms in Acrobat 8, was working with Acrobat 7
      I have written some code to fill in PDF forms from an other application. The code is working with Acrobat version 7. If I run the same code...
    2. #26232 [Bgs->Opn]: in_array produces true when bool true is in haystack
      ID: 26232 Updated by: helly@php.net Reported By: me at my dot house -Status: Bogus +Status: Open...
    3. #26232 [Opn->Ver]: in_array produces true when bool true is in haystack
      ID: 26232 Updated by: helly@php.net Reported By: me at my dot house -Status: Open +Status: Verified...
    4. Bulk email | local stmp collab with asp cdo and access 2000?
      What are the technical challenges in getting a local SMTP email server set up on a win3k system or alternatively on a win2k pro local work...
    5. RedirectFromLoginPage(username, true) no working
      Hi, I just wonder after calling the RedirectFromLoginPage function, my current page still stick to login.aspx fiile. Any clue?? Thanks
  3. #2

    Default Re: collab.showAnnotToolsWhenNoCollab = TrueNot Working in Acrobat 9

    If you use the Acrobat AFORMAUTLib ExecuteThisJavascript this will work with Acrobat 9. Just make sure when using OpenInWindowEx that you use Lock and UnlockEx before executing the Javascript through the AFORMAUTLib.
    PDL@adobeforums.com Guest

  4. #3

    Default Re: collab.showAnnotToolsWhenNoCollab = TrueNot Working in Acrobat 9

    PDL, thanks a lot - it worked! All I had to do was add a reference to the "AFormAut 1.0 Type Library" and the following code:

    Dim formApp As AFORMAUTLib.AFormApp
    Set formApp = CreateObject("AFormAut.App")
    formApp.Fields.ExecuteThisJavascript("Collab.showA nnotToolsWhenNoCollab = true;")

    Adobe, while this is an acceptable workaround I still think that you should fix the JSObject problem.
    S_Don_Walker@adobeforums.com Guest

Posting Permissions

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