1. A method for modifying eXtensible Markup Language (XML) code that represents a document to be printed as a bound book, comprising: accessing the XML code, wherein the XML code comprises: a Cover XML element that represents a cover of the bound book and that includes a Front XML element that represents a front of the bound book, a Spine XML element that represents a spine of the bound book, and a Back XML element that represents a back of the bound book; and a Pages XML element that represents pages of the bound book and that includes multiple Page XML elements, each Page XML element representing a logical page of the bound book; identifying a physical page size that represents a physical sheet of material that will be used to print logical pages of the bound book; modifying the XML code by changing a position of a Page XML element within the XML code, such that each Page XML element in the modified XML code represents a physical page on which multiple logical pages will be printed identifying a maximum number of pages that are able to fit within one volume of the bound book; determining whether a number of Page XML elements in the XML code exceeds the maximum number; and responsive to the number of Page XML elements exceeding the maximum number, modifying the XML code by specifying an additional volume of the bound book.