Thanks for your response. Ulf
//Tj and TJ are the two operators that display strings in a PDF
if (op.getOperation().equals("Tj"))
{
// Tj takes one operator and that is the string
// to display so lets update that operator
COSString previous = (COSString) tokens.get(j - 1);
System.out.println("COSString::"+previous);
String string = previous.getString();
string = string.replace("@loanamount", "5,00,000");
//Word you want to change. Currently this code changes
word "Solr" to "Solr123"
previous.reset();
previous.append(string.getBytes());
}
When i run this code, only Tj loop (if loop) is getting called.
TJ loop is not getting called. so we no need to worry about TJ right now.