19. The medium of claim 18 , further comprising solving for an optimal layout of the variable document content over multiple pages by simultaneously allocating the variable document content to a sequence of multiple variable document template data structures in a table library and solving for template parameters that allow maximal page fill of the variable document content by assigning a probability to the multiple variable document template data structures for each page wherein the probability is indicative of maximal page fill and selecting a respective document template data structure for each page that has the highest probability.
19. The medium of claim 18 , further comprising solving for an optimal layout of the variable document content over multiple pages by simultaneously allocating the variable document content to a sequence of multiple variable document template data structures in a table library and solving for template parameters that allow maximal page fill of the variable document content by assigning a probability to the multiple variable document template data structures for each page wherein the probability is indicative of maximal page fill and selecting a respective document template data structure for each page that has the highest probability. 20. The medium of claim 19 , wherein allocating of the variable document content to a current page is affected by the probability of a previous page and probability of the previous page is weighted by an exponential weighting factor that represents how much to penalize mismatched referenced document content between the current page and the previous page.