I am evaluating the PDF\Office Product but I cant seem to get Form fields that have been populated to display when saved as image.
I am able to create the fields and set the text value, but they dont display, untill I open the PDF in adobe and save?
am I doing something wrong? should I be saving the field values somewhere before I close the file?
- Code: Select all
Dim page As PdfPageBase = pdf.Pages(p - 1)
'page.Canvas.DrawString(value, font, brush, x, y)
Dim textbox As New PdfTextBoxField(page, Fieldkey)
textbox.Bounds = New RectangleF(x1, y1, w1, h1)
textbox.BorderWidth = 0.75F
textbox.BorderStyle = PdfBorderStyle.Solid
textbox.Font = font
textbox.Text = value
textbox.Visible = True
pdf.Form.Fields.Add(textbox)
End If
Next
pdf.Close()