orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
515 stars 221 forks source link

PDF: produce output directly from current form state #1397

Open ebruchez opened 11 years ago

ebruchez commented 11 years ago

When producing a PDF, a new runtime instance of the form is created, to which the current form data is posted. Other aspects such as headers or request parameters are not taken into account.

A solution could be to forward headers and request parameters stored in the current containing document (#1736 covers parameters).

But ideally we would not have to create a new instance of the form. We would just ask the XForms engine to produce HTML output based on the current state.

Note that it can be problematic for the PDF output to depend on such parameters. For example, if you produce a PDF from the summary page of Form Runner, you also would have to make sure that the right URL parameters and headers are passed. The same goes when the PDF is sent to a service URL.

See also customer thread.

ebruchez commented 8 years ago

+1 from user for handling headers

avernet commented 6 years ago

+1 from user for showing the value of a hidden field