I am currently using Aspose.PDF 126.96.36.199.
I have a pdf that is 70 pages and contains 471 fields and I am trying to assign values to each field but it seems to be very slow.
I tried 2 methods and one is faster than the other but both are very slow. In both cases I have a variable called ‘s’ that is a pdf as a memorystream.
Method 1: (takes 452 seconds to run)
Dim doc As New Aspose.Pdf.Document(s)
For Each formField As Field In doc.Form
formField.Value = “Test”
Method 2: (takes 184 seconds to run)
Dim form As New Aspose.Pdf.Facades.Form(s)
For Each formField As String In form.FieldNames
form.FillField(formField, “Test 2”)