“read someone like a book” = understand someone very well “My teacher can read students like a book. He knows which students study, and which students don’t.“
“go by the book” = follow rules exactly “If you always go by the book in your work, your company will trust you more.“