Printer for identity cards and medical cards