Description
There is a simple way of improving the performance of drawString by replacing
string.writePDF( buffer );
appendRawCommands( new String( buffer.toByteArray(), "ISO-8859-1"));
appendRawCommands( SPACE );
with
string.writePDF( buffer );
appendRawCommands( buffer.toByteArray() );
appendRawCommands( SPACE );
as the appendRawCommands(String) simple does a appendRawCommands(str.getBytes( "ISO-8859-1" ));
Therefore this optimization should spare the String creation as well as the conversion back to a byte array.