Fifteen-year-old Delilah is a loner. Her father left years ago, and her mother worries since Delilah has no reputable friends. Delilah, who loves to read, finds an old fairy-tale book at the library called Between the Lines. She is attracted to the main character — handsome Prince Oliver — partly because he knows what it’s like to lose a father. She wishes desperately that she could know someone like Oliver. Then one day, he speaks to her from inside the book.
Oliver didn’t really lose his father. The dragon and the villain aren’t actually evil, and Oliver doesn’t really like his “true love,” Princess Seraphima. They’re all just actors, playing their parts over and over each time someone opens the book. Oliver is growing tired of playing the part, wishing he could escape those pages and enter the real world. He’s tried to communicate with his readers, to ask for help, but no one has ever been able to hear him, until Delilah. Slowly, she begins to talk to him, and they become friends. Together they try to figure out what it will take to get Oliver off the page and into Delilah’s world.
Meanwhile, Delilah deals with her real-life problems. The kids at school are cruel. Mom, thinking she hears Delilah talking to herself in her room, calls a shrink. Within the pages of the book, Oliver consults with the people who have magical powers to find his way out of the book. When nothing seems to work, Oliver pulls Delilah into his story. Delilah realizes that as much as she wants to be with Oliver, she wants her life at home as well. Oliver’s magician friend returns Delilah to her world.
As a last resort, Delilah decides to talk to the author of Between the Lines. With the help of her friend Jules, she secretly travels to Cape Cod to find writer Jessamyn Jacobs. Between the Lines, a fairy tale, was the last book she ever wrote, but she is most famous for her best-selling thriller books. Delilah goes to Jessamyn’s house and asks her to rewrite the ending. Jessamyn says she can’t. She urges Delilah to call her mom, but invites Delilah to stay for the night since she’s so far from home. Delilah meets Edgar, Jessamyn’s son, who is the spitting image of Oliver. Edgar loves to play video games and feels all he’s ever done is disappoint his mother. When Delilah learns Jessamyn’s copy of Between the Lines is still on the computer that Edgar uses for playing games, she and Edgar rewrite the ending. Edgar trades places with Oliver, becoming the fairy-tale character, while Oliver becomes real at last.