Method and device for printing plate-shaped workpieces