I have a simple pdf document with one ComboBox (please see Input.pdf). The font I used is Helvetica.
I’m running the following code:
var doc = new Document("D:/Input.pdf"); var comboBox = (ComboBoxField)doc.Form.First(); comboBox.Selected = 1; doc.Save("D:/Output.pdf");
When I open Output.pdf in Chrome, the displayed font is Times New Roman. However, when I expand the list, the options use Helvetica. Also, when I choose the value manually (Chrome or Acrobat), save the file and open it again in Chrome, the font is Helvetica again.
Could you please advise why the font changes and how to avoid it?
I’m using Aspose.PDF for .Net v21.11.0 with licence.