Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read real font from AcroForm #9

Open
PlPt opened this issue May 9, 2023 · 1 comment
Open

Read real font from AcroForm #9

PlPt opened this issue May 9, 2023 · 1 comment

Comments

@PlPt
Copy link

PlPt commented May 9, 2023

In current implementation the Font on an PdfTextField is "Curier New" hardcoded in PdfTextField class.
This causes to crash my automatically filled PDF because in the PDF the Font and Size is Predefined in this fields.

See here:
public XFont Font { get; set; } = new XFont("Courier New", 10.0);

@PlPt-ads-tec
Copy link

I created an implementation for this, see PullRequest #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants