template to printer conversion