Hi,
We are modifying an existing PDF almost along the lines of the code given in the github repo:
The one extra thing we have done is to set the font to Bold and Italic:
textFragment.TextState.FontStyle = FontStyles.Bold | FontStyles.Italic;
The above line of code follows textFragment.TextState.Font = …
When we open the PDF, the appended text is not displaying and when we click on it, we are getting an error “Cannot find or create the font ‘LMWFPU+ArialBoldItalic’. Some characters may not display or print correctly.” The “LMWFPU” string will change every time I generate the pdf and replace the text.
This error however seems to go away when we comment the below line of code:
textFragment.TextState.Font = FontRepository.FindFont(“Arial”);
I can confirm that I have Arial installed in my machine in C:\Windows\Fonts. Please advise if there is any way out of this error.