In all investigations for forgery, the investigating judge, as soon as the document alleged to be forged has been produced before him or has been placed in the hands of the court, shall order it to be deposited with the registry. However, before the document is deposited at the court registry, the examining magistrate may order that it be reproduced by photograph or by any other means.
.