views:

163

answers:

0

Does anyone have experience using XFDF for pdf's? Are there any pitfalls in using this approach?

Step1 - I would need to create a pdf (adobe pro) with read only fields that are bound to elements in XML. This would act as a stencil to overly the data.

Step2 - Create custom classes that generate the XFDF XML string from data in our database.

Step3 - When a user requests a pdf, we simply would retrieve the data from the DB, construct the XFDF string and flush the string to the browser.

The main benefit to this architectural decision is that there is no need to store pdf's in the db or on hard drive. Additionally, I have seen many pdf generation implementations that use home grown batch processes that are buggy and only create another 'moving part' in an application.