Added a method to generate package document component with a spine index