Irving, in the string you're putting in, are all 10 characters Latin characters? And you're using a basic font? We've heard about some problems dealing w/ non-Latin characters and problems rendering fonts other than the most common ones are common. I just wonder if you're running into a known issue there instead of actually an issue w/ ReplaceString.
Daniel Wilson On 1/21/09, [email protected] <[email protected]> wrote: > > Hello, > > I'm having a problem trying to replace a text string in a PDF. I found the > ReplaceString class in the examples folder and tried using it to replace a > 10 character string with another 10 character string via the method: > > doIt(String inputFile, String outputFile, String strToFind, String > message) > > > Tracing through the code, the strToFind is being found as the result of a > Tj operation and is then replaced by the message string. However when I > view the outputFile, only 2 of the 10 characters are being displayed. > > Thanks for any suggestions. > > > Irv Murray
