An inspired deal with a hospital helped a printing firm weather the storm.