Translate SelectFont/ SetGlyphsPositionShowText and other operators output to PIL compatible Font
to visualize in an image.
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.
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.
Please find the code snippet and sample document as attached. Looking forward to your prompt reply.
support_ticket_snippet.zip (566.7 KB)
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFPYTHON-361
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.