The Pagemaster(1994)

A cowardly boy who buries himself in accident statistics enters a library to escape a storm only to be transformed into an animated illustration by the Pagemaster. He has to work through obstacles from classic books to return to real life.