package com.tom_roush.pdfbox.contentstream.operator.text;
import java.io.IOException;
import java.util.List;
import com.tom_roush.pdfbox.contentstream.operator.Operator;
import com.tom_roush.pdfbox.contentstream.operator.OperatorProcessor;
import com.tom_roush.pdfbox.cos.COSBase;
import com.tom_roush.pdfbox.cos.COSString;
/**
* Tj: Show text.
*
* @author Laurent Huault
*/
public class ShowText extends OperatorProcessor
{
@Override
public void process(Operator operator, List<COSBase> arguments) throws IOException
{
if (arguments.size() < 1)
{
// ignore ( )Tj
return;
}
COSString string = (COSString)arguments.get( 0 );
context.showTextString(string.getBytes());
}
@Override
public String getName()
{
return "Tj";
}
}