Use getter method of TextState.FontStyle in Aspose.PDF for .NET to get font style

Hello, I’m getting an error from Aspose saying that the FontStyle parameter of the TextFragmentState object has no get accessor method, but I’ve seen another post (Get font style bold italic while extracting text from PDF using Aspose.PDF for .NET - #4 by asad.ali) access it. I’m using Aspose 18.5 in .NET. Am I missing something here?

@murrman95

The linked post is related to Aspose.PDF for .NET 20.2 version and until then the getter of the mentioned Property was implemented. Would you please upgrade your API as it is always recommended to use latest version. In case you face any issue, please feel free to let us know by sharing sample code snippet and sample PDF document. We will test the scenario in our environment and address it accordingly.