PDFsharp icon indicating copy to clipboard operation
PDFsharp copied to clipboard

Read real font from AcroForm

Open PlPt opened this issue 2 years ago • 1 comments

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 avatar May 09 '23 12:05 PlPt

I created an implementation for this, see PullRequest #15

PlPt-ads-tec avatar May 22 '23 08:05 PlPt-ads-tec