Every public officer having the custody of a public writing which a citizen has a right to inspect is bound to give him, on demand, a certified copy of it, on payment of the legal fees therefor, and such copy is admissible as evidence in like cases and with like effect as the original writing.