Copyright protects the presentation of knowledge, not the knowledge itself, which is uncopyrightable in almost all jurisdictions.

As long as the book was a legal copy, that is allowed legally.