With Telerik reporting (RadPdfProcessing), could we able to do bellow?
1. Load existed an AcroForm as template
2. Auto fill data to this template with data in the database
3. Generate to new non editable PDF file
If can do, please post the guideline
Thank you for supporting
4 Answers, 1 is accepted
Using the PdfProcessing library you can import document containing AcroForm and iterate the form fields using the AcroForm class. The AcroForm class exposes the FormFields collection where you can use the collection indexer to get a form field instance by name. More information of the form field properties can be found in the FormField properties section of the documentation. Sample project demonstrating the import of a PDF document, modify the values of the interactive forms and save it back to the file system can be found in our SDK examples.
In order to generate a non-editable PDF file, you will need to flatten the form fields of the document. Currently the API for flattening form fields is not implemented in the PdfProcessing library. We have logged a feature request in our feedback portal: Implement API for flattening form fields, where you can vote to increase the priority and subscribe to be notified for any status updates. As a workaround, sample implementation how to achieve flattening of form fields can be found in the description of the item.
I hope this helps.
Thanks for the sample. It's work for me.
(y) Nice supporter, thank you again.
The example code is not work if i use AcroForm with signature certificate...
Can you support?
In order do sign the document you need to use the following code snippet just before exporting the document.