17. A computer system comprising: a processor; and a memory storing program instructions of a document conversion application, the program instructions executable by the processor to perform operations comprising: analyzing in an input data stream representing the document in a first document format, document formatting to determine a plurality of inline styles applied to text of said document, wherein the inline styles comprise at least one of a font type, a font size, bold text, italicized text, underlined text, and capitalized text, and wherein the inline styles are applied to the text using inline style formatting; adding each of the detected inline styles to a styles data structure stored in a memory accessible to the document conversion application; converting the input data stream into an output data stream representing the document in a second document format; analyzing the styles data structure to identify each instance of a particular inline style and match the inline styles that occur together in the document into a plurality of groupings of inline styles that are commonly applied to different portions of the text, wherein the plurality of groupings of inline styles correspond to formatting patterns applied to the different portions of the text; determining that a first subset of the groupings of inline styles designates major headings within the document and a second subset of the groupings of inline styles designates sub-headings within the document; inserting breakpoints into said output data stream, according to a breaking protocol, wherein the breaking protocol specifies that each breakpoint is inserted into the output data stream at a location prior to an occurrence of a major heading within a particular segment of the document, or, if no major heading occurs within the segment, prior to a sub-heading, wherein insertion of said breakpoints divides said document into a plurality of discrete sub-documents each in said second document format; and after insertion of said breakpoints, storing the output data stream in a storage device.
17. A computer system comprising: a processor; and a memory storing program instructions of a document conversion application, the program instructions executable by the processor to perform operations comprising: analyzing in an input data stream representing the document in a first document format, document formatting to determine a plurality of inline styles applied to text of said document, wherein the inline styles comprise at least one of a font type, a font size, bold text, italicized text, underlined text, and capitalized text, and wherein the inline styles are applied to the text using inline style formatting; adding each of the detected inline styles to a styles data structure stored in a memory accessible to the document conversion application; converting the input data stream into an output data stream representing the document in a second document format; analyzing the styles data structure to identify each instance of a particular inline style and match the inline styles that occur together in the document into a plurality of groupings of inline styles that are commonly applied to different portions of the text, wherein the plurality of groupings of inline styles correspond to formatting patterns applied to the different portions of the text; determining that a first subset of the groupings of inline styles designates major headings within the document and a second subset of the groupings of inline styles designates sub-headings within the document; inserting breakpoints into said output data stream, according to a breaking protocol, wherein the breaking protocol specifies that each breakpoint is inserted into the output data stream at a location prior to an occurrence of a major heading within a particular segment of the document, or, if no major heading occurs within the segment, prior to a sub-heading, wherein insertion of said breakpoints divides said document into a plurality of discrete sub-documents each in said second document format; and after insertion of said breakpoints, storing the output data stream in a storage device. 18. The system of claim 17 , wherein the program instructions further cause the computer system to generate a style sheet for said document in said second document format, said style sheet comprising each of the detected inline styles.