*/
public void render(PdfObject object) {
if (object instanceof PRStream) {
PRStream stream = (PRStream)object;
try {
TextAreaOutputStream taos = new TextAreaOutputStream(text);
taos.write(PdfReader.getStreamBytes(stream));
//text.addMouseListener(new StreamEditorAction(stream));
}
catch(IOException e) {
text.setText("The stream could not be read: " + e.getMessage());
}