Hello,
I'm struggling with a seemingly simple issue. I have a business requirement where I need to set up a PDF with various form Text Fields that are of different colors, background colors, border colors, fonts and orientations. I set this up using FoxIt PhantomPDF and things work great when I fill it out any PDF reader.
However, when I dynamically fill this out using EO.PDF, the form fields have no formatting, but when I manually type into the field and add a character and then click off the field, my formatting applies including font, foreground color, background color, border and orientation.
My code looks something like this:
Code: C#
using (Stream inputStream = new MemoryStream(inputByteArray))
{
PdfDocument document = new PdfDocument(inputStream);
PdfTextField fieldSSN = document.Fields["SSN"] as PdfTextField;
fieldSSN.IsAppearanceInherited = true;
fieldSSN.Text = "111-11-1111";
using (MemoryStream outputStream = new MemoryStream())
{
document.Save(outputStream);
outputByteArray = outputStream.ToArray();
}
}
I feel like I've tried just about everything.
We have the license for version 19.2.91, and I even tried temporarily upgrading to 22.1.42 with the same results.
Any help would be much appreciated as there is a rapidly approaching deadline and I need to decide soon if I'm going to use this technology or go a different route.
Thanks,