The data source for data prepared in a dynamically created PDF document is usually a database, often an Oracle RDBMS. On the other hand, it is a general requirement to store the conditions under which the dynamic generation took place as well as the generated document. It is practical to store these data in a database as well, for easy access in the future. If both the source and target of the generated document is in the database then it is best to actually generate the document in the database also.