Section 4. No ink shall be used upon any permanent public record except ink of such a standard as established and approved by the supervisor of records, and no ribbon, pad or other device used for printing by typewriting machines, or stamping pad, or any ink contained in such ribbon, pad, device, stamping pad or carbon paper, shall be used upon any permanent public record, nor shall any photographic machine or device or chemical used in connection therewith be used in making any permanent public record, except such as has been approved by the supervisor of records, who may cancel his approval if he finds that any article so approved is inferior to the standard established by him. The supreme judicial or superior court shall have jurisdiction in mandamus, on petition of the supervisor of records and pursuant to section five of chapter two hundred and forty-nine, to order compliance with the provisions of this section.