PDF form fields demo
This demo provides a web application with direct form field interaction that gathers data, computes results, and outputs a final document.
The context is an invoice that you fill in. You can enter article descriptions or references, quantities, and unit prices. When done, click the calculate button.
A custom action will be triggered. On the server side, all the invoice data will be put together, the VAT rate will be applied, amounts will be computed, and the results will be added to the corresponding form fields.
Once you’re happy with the result, click the PDF button. A non-editable PDF copy of the document will be generated server-side and downloaded automatically.
Points of interest
- Direct user interaction with fillable PDF documents
- How to trigger a server-side action using a custom action
- How to retrieve and process form fields data server-side using GdPicture.NET
- How to put data in existing form fields server-side using GdPicture.NET
- How to flatten a fillable PDF document using GdPicture.NET
- How to trigger the print window using the client JavaScript API