The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am trying to import multiple existing PDFs with forms. I am able to attach as many pdfs as I want however, the form filling is not working. Below is my code that I am using.
Thanks Chad
////////////////// //Code starts here ////////////////// PDFDocument doc = new PDFDocument(); doc.Pages.Remove(doc.Pages[0]);
Stream s = File.Open("form.pdf", FileMode.Open); PDFDocument ldoc = new PDFDocument(s); s.Close();
IPDFPage lPage; IPDFForm form; for (int i = 0; i < 2; i++) { form = ldoc.Form; form.Fields["field"].Value = "Form " + i; form.Flatten();
DKDhivya K Syncfusion Team January 17, 2007 12:52 PM UTC
Hi Chad,
Thank you for your interest in Essential PDF.
Currently we do not have support for merging multiple forms. However, we can flatten multiple forms after filling them and the merge them all. Or we can flatten them and add pages as you have done.
I am unable to reproduce the issue with your code.
Here is a sample for your reference. Sample:http://www.syncfusion.com/Support/user/uploads/MergeForms_2003_cf9f67a6.zip
Please take a look into it and let me know if you have any queries. Could you please provide me your sample PDF forms that you are trying to fill. This will help me investigating further on this issue.