How to hook file open action using plugin?

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

  1. #1

    Default How to hook file open action using plugin?

    I would create a plugin to decompress file which compress by my other tools. In my mind,I will do this before file is opening, in sample "RplcFileSystem", this only hook this action which open from plugin. How could I do in "PluginInit"?
    BrainChen@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Automatic bleed plugin/filter/action
      I'm looking for a tool to automate adding bleed around a selected image. The bleed can be as simple as repeating a pixel away from a selection, at an...
    2. FORM action to open new window
      I'd like to use the action atrribute in FORM or CFFORM to execute a URL that would open a new window, just like the <a href="" target="_blank"></a>...
    3. open new window via form action
      is it possible to open a new window via a form action? If so, how? thanks
    4. Plugin for 2.02 to open up CS files
      Hello, I'm looking to open up a CS file, but my 2.02 won't let me. I've read about a plugin for this, but I'm not quite sure where to down load...
    5. Open file, make changes, save file, close, re-open, file contents not changed
      I've now run into this several times and it's completely destroyed all of my confidence in Ilustrator CS on Mac. I'm hoping someone can confirm that...
  3. #2

    Default Re: How to hook file open action using plugin?

    I am not sure that I am following.

    You are compressing a PDF using some other method, yes? Why? PDF is already partially compressed and recompressing it may, in many cases, actually ENLARGE the PDF. And, of course, it makes it impossible for others to read your document.

    If you do wish to do this, then you have two choices - either a custom file system OR an AVConversionHandler. Personally, I'd go with the second option since it's easier and better integrates with Acrobat.

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: How to hook file open action using plugin?

    Leonard ,thanks
    I think, I would chose the first option. because I need open file from memory like the another topic:Can Acrobat load document from memory .
    BrainChen@adobeforums.com Guest

  5. #4

    Default Re: How to hook file open action using plugin?

    Leonard:
    How to use AVConversionHandler to capture file open event?
    I search this in sample code, is this?
    strcpy (gConversionHandler.uniqueID, kPIUniqueID); // set the uniqueID to special operator?
    gConversionHandler.convert = ASCallbackCreateProto (AVConversionConvertFromPDFProc, ConvertFromPDFProc); // set the process callback?
    BrainChen@adobeforums.com Guest

  6. #5

    Default Re: How to hook file open action using plugin?

    Your AVConversionHandler will get called when a user opens a file of your custom type (since your file won't be a PDF, it will be something else).

    This is how Acrobat handles opening Word, Excel, etc. files.

    There is a sample in the SDK of how to create a ConversionHandler and fill it with the necessary methods. It can support both file and memory based conversion.

    However, I am still confused about how you plan to get this memory to Acrobat. If you just wish to open a PDF from memory (compression not with standing), then you want a custom filesys (again, see the SDK samples).

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  7. #6

    Default Re: How to hook file open action using plugin?

    Leonard:
    Thanks. I find the "SecurityHandler" sample meet my requitment.I think I had bad method on the begining :(
    BrainChen@adobeforums.com Guest

  8. #7

    Default Re: How to hook file open action using plugin?

    Is your plug-in eventually intended to work with Adobe Reader? If so,
    be aware that this has special and stringent licensing requirements,
    being a DRM plug-in, and the licensing cost may be $35K minimum.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  9. #8

    Default Re: How to hook file open action using plugin?

    Aandi Inston:
    My plugin only run in Arcobat.It's too much cost for it to run in Reader.
    BrainChen@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