public void processContent ( byte [ ] contentBytes , PdfDictionary resources ) { this . resources . push ( 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 ) ; } } catch ( Exception e ) { throw new ExceptionConverter ( e ) ; } this . resources . pop ( ) ; }
Processes PDF syntax