This example is not up to date and need to be changed to take into account the printer changes ... and use the painter class -- Fabien Bodard