AVDocGetSelectionType TouchUpHighlightContentServer

What is a TouchUpHighlightContentServer AVDocGetSelectionType equivalent to. I tried to represent the selection as a PDEContent, but it produces a lot of mistakes.

As a general rule, no. I can't think of the panels, or interactive tools provided by a plug-in can interact with. If you want a version modified to a tool or a Panel, you must re-implement existing functionality (which may not be a real group).

I think that Adobe deliberately so that they are free to change or re-implement tools completely between versions.

Tags: Acrobat

Similar Questions

  • Acrobat9: Export selected the Image.

    Hi all

    I need to export the selected image.

    I wrote this code to export the image.

    Code:

    ASAtom ImageSelection = ASAtomFromString ("Image");


    If (ImageSelection is AVDocGetSelectionType (avDoc))

    {

    void * data = AVDocGetSelection (avDoc);

    If (data! = NULL)

    {

    PDXObject xObj = static_cast < PDXObject > (AVDocGetSelection (avDoc));

    PDImageAttrsP attrsP;

    ASInt32 attrsLen;

    PDImageGetAttrs (xObject, attrsP, sizeof (PDImageAttr));

    }

    }

    but it gives an error "an internal error has occurred."

    Help, please.

    First of all, have you read the documentation?

    There are only 4 types of objects which manages the AVDocGetSelection with the default server: text, Bitmap, Annotation, thumbnail image.  What type AVDocGetSelectionType coming back when you have your selected image?

    If it returns 'Bitmap' and then, in accordance with the documentation, the type returned will be AVGrafSelect.

    If you select a non-bitmap (JPEG, PNG, etc.) then you have to write your own selection as a plug-in server to handle these Images.  There is an example provided with the SDK called SelectionServer, and fortunately for you, it is designed to manage Images, so you should be able to implement with few changes.

Maybe you are looking for