Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

How do I get Texts in a .indd file to a wordpad

$
0
0

I'm running CS6 & developing a pluging for that.

 

Currently I'm reading texts written in a .indd file & print them to a text file using ITextModelClass..

But I can't read texts written as TextVariable & I tried to convert them to strings using

 

ITextVariable*  textVariable,

textVariable->VariableToString(varUIDRef, temp, kTrue);

 

when i run the above code, it returns texts that are not relevant to the current .indd file.

 

when i use "kFalse" instead of kTrue it gives a runtime error & return nothing.

 

So how can i convert "TextVariable " to a readable text.

 

Thanks..


Viewing all articles
Browse latest Browse all 78596


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