PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Questions about form field processing https://forum.pdfsharp.net/viewtopic.php?f=2&t=529 |
Page 1 of 1 |
Author: | SMB [ Thu Nov 06, 2008 1:14 pm ] |
Post subject: | Questions about form field processing |
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? |
Author: | dgxs [ Tue Dec 30, 2008 10:54 pm ] |
Post subject: | Same issue |
I have the same issue as number 1. It is extremely strange. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |