Hi,
I am new to PdfSharp and have two questions concerning form field processing:
1)
I create a text form field usind Adobe Acrobat. I set font size 16 and color blue on the field. Then I fill the field using PdfSharp and save it to another file like this
Code:
Dim pdfdokument As PdfDocument = PdfReader.Open("C:\ge1.pdf", PdfDocumentOpenMode.Modify)
Dim pdfAcroForm As PdfAcroForm = pdfdokument.AcroForm
Dim fields As PdfAcroField.PdfAcroFieldCollection = pdfAcroForm.Fields
Dim field As PdfTextField = fields("NameVornameVN")
field.Text = "Hello World"
pdfdokument.Save("C:\ge_filled_pdfsharp.pdf")
Problem is, the text shows up in the document, but the beforementioned formatting (font size, color) is not used, different font size and color is displayed.
Only when I click the field, the text changes to the correct formatting. Ths is something i don't understand. When the text is deselected, it changes back to the wrong formatting.
2)
When merging documents, fom fields are lost. Is there a plan to fix this?