Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

InDesign CS6 plug-in not recognized correctly by InDesign

New Here ,
Jan 29, 2014 Jan 29, 2014

I have been trying to create a simple InDesign CS6 plug-in that writes to a log file as I'm opening & closing InDesign documents. SDK package had the LinkWatcher sample that I've been using as a reference when creating my solution.

Currently the problem is that I'm getting a "Adobe InDesign does not recognize mfindesign.pln as a valid plug-in" when I try to start up InDesign CS6 with the plugin. That isn't too helpful as it doesn't let me know where the problem is and compiling the code with VS2010 gives me no errors currently.

Relevant parts of the code can be found from https://github.com/crnd/MFIndesign/. I've been using CResponder as a base class in my implementation.

Anyone have any good pointers where & how to start looking for the problem? Or even better if someone can already spot the mistake(s) I've made...

TOPICS
SDK
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Jan 29, 2014 Jan 29, 2014

I guess that is resource related problem. Check if you have (MFIndesign Resources) directory in plugins directory

Regards

Bartek

Translate
Advocate ,
Jan 29, 2014 Jan 29, 2014

I guess that is resource related problem. Check if you have (MFIndesign Resources) directory in plugins directory

Regards

Bartek

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 29, 2014 Jan 29, 2014

You need a class DocumentServiceProvider derived from CServiceProvider.

In GetServiceIDs() you register kDuringNewDocSignalRespServiceImp and alike.

Your CDocumentWatcher() looks good on first glance.

In your *.fr file change the class definitions to somethings like:

Class {

    kMFInDesignNewDocResponderBoss,

    kInvalidClass,

    {

        IID_IRESPONDER, kCDocumentWatcherImpl,

        IID_IK2SERVICEPROVIDER, kDocumentServiceProviderImpl,

    }

}

Regards, Peter

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 31, 2014 Jan 31, 2014
LATEST

This was indeed caused by my resources not being in the (MFInDesignPlugIn Resources) directory. I changed my intermediate directory from project properties and now I got it working.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 29, 2014 Jan 29, 2014

Make sure you are using debug plug-in with InDesign debug (or release plug-in with InDesign release).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2014 Jan 30, 2014

This is a typical problem to solve, based on my individual experience on this issue i would recommend the following check points.

  1. Check that your plugin is linking to correct version of libraries.
  2. Check you are using the correct version of SDK
  3. Look for the odfrc command line and see that correct flags are being sent as argument to it. Also that the correct version of odfrc is being used to compile the resources
  4. If possible use the debug version of InDesign, it may give you more detailed error prompt. Like if the plugin you are trying to load is a release version, or the resources are missing.
  5. See if the resources are actually compiled and the resulting folder is placed parallel to your .pln file, like very truly mentioned by Bartek. Pay attention to what the name of this folder should be.
  6. Also makes sure that these resource folders are not empty.

Hope one of these steps does the trick for you.

-Manan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines