I am using spire.pdf.
I have the following problem.
I created a dynamic stamp. This stamp has an textbox. When you place the stamp on a pdf file you are asked to write a number. After this, this number is placed on the stamp.
When I read only my stampfile, I can read the number, but not when the stamp is placed in an other pdf file.
So my stamp is some kind of nested pdf.
Is there any way to read from the file, the stamp is placed, the number that is placed inside the stamp file? The stamp itself is also a pdf file.
To read something from a textbox I use the following code successfully, but not in this nested matter.
- Code: Select all
Dim doc As PdfDocument = New PdfDocument()
doc.LoadFromFile("C:\temp\" & "Rechnungspruefung.pdf")
Dim formWidget As PdfFormWidget = TryCast(doc.Form, PdfFormWidget)
For i As Integer = 0 To formWidget.FieldsWidget.List.Count - 1
Dim field As PdfField = TryCast(formWidget.FieldsWidget.List(i), PdfField)
Dim g As PdfStampCollection
If TypeOf field Is PdfTextBoxFieldWidget Then
Dim textBoxField As PdfTextBoxFieldWidget = TryCast(field, PdfTextBoxFieldWidget)
Dim s As String = textBoxField.Text
End If
Next
Thanks
Best Regards
Bernd