Under US copyright law, converting the work to a different medium creates a new copyright. So scanned files made from a public-domain book would not themselves be in the public domain. Whether it is legal to extract the text from those scanned files and produce something that is in the public domain, I don't know.