Every public officer is entitled to the possession of all books and papers pertaining to his office, or in the custody of a former incumbent by virtue of his office.