"Text" attribute don't show the same as searched for...

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
nutshell
Posts: 2
Joined: Wed Aug 26 2009

"Text" attribute don't show the same as searched for...

Post by nutshell »

Hi,

I'm currently testing the PDF Creator ActiveX 4.0 (eval version) component and I'm using the "search" method to locate objects and then display it's "Text" attribute. The thing that puzzles me is that when I search for the string "ABCD", the Text attribute displays "ABC". Every string I search for turns up one letter short when examine the Text attribute of the object. Anyone having a clue?

The Code (in short):

name = pdf.ReachTextEx(ReachTextOptionConstants.acReachTextOptionStartNoCase, tb_search.Text, "", 0, 0, 0);
obj = pdf.GetObjectByName(name);
MessageBox.Show((string)obj["Text"], "Object: " + name);
Post Reply