Translate SelectFont operator output to PIL compatible Font

Translate SelectFont/ SetGlyphsPositionShowText and other operators output to PIL compatible Font
to visualize in an image.

@akash.gandhi

Can you please provide more details on what specific output you are trying to translate from SelectFont and SetGlyphsPositionShowText operators to PIL compatible Font?

After reading a pdf document and iterating through the operators using page.contents,
I am trying to get hold of the metadata captured by individual operators such as SelectFont and SetGlyphsPositionShowText etc. After I print operator when type is “Aspose.Pdf.Operators.SelectFont” I get below as output -
Output String : /F2 12.000 Tf

Similarly when I print operator of type “Aspose.Pdf.Operators.SetGlyphsPositionShowText” I get following output:
Output String - [(P) 18 (a) 10 (ge) 4 ( )] TJ

I would like to understand how to get a plain string for SetGlyphsPositionShowText with the right font , Style,size. Alternatively if there is a neat way to extract this sort of data I am open to those suggestions too.

@akash.gandhi

We need to investigate this scenario in details. Can you please share your sample PDF and the code snippet that you are trying? We will log an investigation ticket and share the ID with you.