Friction or Frictional force will always be acting opposite of the applied force. If you apply a force perpendicular to the book, assuming that it does not move, then it will still possess a static friction, unless it move in any direction up or down, then the direction of friction will always be opposite on the applied force.