public void processContent(byte[] contentBytes, PdfDictionary resources){
reset();
this.resources = resources;
try {
PdfContentParser ps = new PdfContentParser(new PRTokeniser(contentBytes));
ArrayList operands = new ArrayList();
while (ps.parse(operands).size() > 0){
PdfLiteral operator = (PdfLiteral)operands.get(operands.size()-1);
invokeOperator(operator, operands);
}
}