Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

How to add alternate text to selected image?

$
0
0

Dear All,

 

I want to add aleternate text to selected image(jpeg,bitmap,png,tiff).Is this possible by creating plugin?

 

    PDPage page = NULL;

    //Create a PDPage object

    AVDoc avDoc = AVAppGetActiveDoc();

    PDDoc myPDDoc = AVDocGetPDDoc(avDoc);

    page = PDDocAcquirePage(myPDDoc, 0);

 

    //Get selection on the page

     if(ASAtomFromString("Image") == AVDocGetSelectionType(avDoc))

     {

         void *selection = AVDocGetSelection(avDoc);

        if(*selection != NULL){

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

        }

     }

now ,how can i add alternate text to selected image. Any help would be greatly appreciated.

 

Thanks


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>