Section 34. The court or magistrate before whom a person is convicted of a violation of section thirty of this chapter, or of any provision of sections twenty-nine to thirty F, inclusive, of chapter one hundred and thirty-eight relating to the retention, filing or inspection of prescriptions, or of section two of chapter two hundred and seventy shall send to the board a certificate under seal showing the time, cause and place of conviction.