PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

ForeColor of AcroForm Fields?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3104
Page 1 of 1

Author:  cwallace [ Thu Apr 30, 2015 11:21 pm ]
Post subject:  ForeColor of AcroForm Fields?

Hi! I've been making great strides over the last two weeks in getting our system converted to PDFSharp. I ran into one tiny problem that makes a big problem for me. We have thousands of PDF forms that may be accessed at one time or another. In most cases, the fore color/fill color of these fields is blank. However, the most important field on each one, the date field, has white fill color. Is there any way to change this with acroforms?

This is how I enter data into the chosen field:
Dim strPDFText As New PdfString(value)
doc.AcroForm.Fields.Item(dictField.Key).Value = strPDFText

I really don't want to go through each pdf we have and change the properties of each field. I know that we can set the forecolor using PDFTextField, but I don't know if I can do it the way I'm accessing fields.

If this doesn't make sense, please let me know and I'll try to explain more. Thanks!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/