if(rawText!=null)
chars=new char[rawText.length*2];
int ii=0;
char nextChar;
TextTokens rawChars=new TextTokens(rawText);
//test to see if unicode
if(rawChars.isUnicode()){
//its unicode
while(rawChars.hasMoreTokens()){
nextChar=rawChars.nextUnicodeToken();
if(nextChar==9){
chars[ii]=32;
ii++;
}else if(nextChar>31 || (keepReturns && (nextChar==10 || nextChar==13))){
chars[ii]=nextChar;
ii++;
}
}
}else{
//pdfDoc encoding
while(rawChars.hasMoreTokens()){
nextChar=rawChars.nextToken();
String c = null;
if(nextChar==9){
c = " ";
}else if (keepReturns && (nextChar==10 || nextChar==13)){