A person summoned to produce a document does not become a witness by the mere fact that he produces it, and cannot be cross-examined unless and until he is called as a witness.
Section 139 IEA
Cross-examination of person called to produce a document
The Indian Evidence Act, 1872 is repealed. It was replaced by The Bharatiya Sakshya Adhiniyam, 2023 from 1 July 2024; this provision still applies to matters that arose before then.