The book was thought to be lost forever but was returned in April to the private, nonprofit library at the edge of San Francisco’s Financial District.