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

how I get the font color of a word?

$
0
0

what I am doing wrong here?

I am trying to get the color of the word.

 

  PDWordFinderAcquireVisibleWordList(wordFinder, i, NULL, &wordInfo, &pXYSortTable, NULL, &numWords);

 

  for (ASInt32 k = 0; k<numWords;k++) {

 

       myWord = PDWordFinderGetNthWord(wordFinder, k);

 

       wordStyle = PDWordGetNthCharStyle(wordFinder, myWord, 0);

 

       if (wordStyle!=NULL){

            PDStyleGetColor(wordStyle, theColor);// I get an error here

       }

  }

 

 

the  guide says that I should use a pointer to the color structure but I cannot build the api if I use it this way.

      PDStyleGetColor(wordStyle, &theColor)

 

thanks in advance.


Viewing all articles
Browse latest Browse all 10848

Trending Articles



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