We recently purchased a license and integrated this library into our workflow. However, we’ve encountered a slight issue.
Our client has a program with a pre-existing workflow that replaces TextBox fields in PDFs with different values, fonts, etc., based on their specific needs. The font replacement relies on the fact that each TextBox has a /DA (default appearance) entry in its field dictionary.
Something like this:
- Code: Select all
/Helvetica 21 Tf 0.4470588235294118 0.3215686274509804 0.6745098039215687 rg
is replaced with
- Code: Select all
/Ubuntu-Bold 21 Tf 0.4470588235294118 0.3215686274509804 0.6745098039215687 rg
This second part changes from client to client.
The issue we’re facing is that Spire.PDF doesn’t seem to attach the /DA property directly to the TextBox. Instead, it creates an Annotation where the /DA is placed and then connects that Annotation to the field using a /Kids entry.
Is there any way to achieve the /DA property being attached directly to the TextBox instead of the current implementation? Any guidance or suggestions would be greatly appreciated!
Thank you in advance for your help!