I have an AcroForm
with some fields, and I need to fetch font information for one of fields. I know that I must use
(PdfFormField)field.getDefaultAppearance()
but this results in string like
/Helv 12 Tf 0.25 0.25 0.25 rg`
Is there a simple way to parse that string into PdfFont
object?
It is obvoious that I can parse that by hand from given string, but I suspect that IText have some utils tha will do that for me isnt' it?
Besides /Helv
is only "reference" or something like that, obviously pointinc to Helvetica
but what if I would have some sort of custom fonts?
Thanks!