You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convert the list of rectangle in the viewport and inject them in the TextLayer
What is the expected behavior?
My goal is to make available the selection on annotations. I can handle the position of rectangles, but impossible to find/get through the API the font or the font-size used during the drawing.
The annotation object doesn't contain it.
The font information for a given annotation can be found via the defaultAppearanceData-property, for applicable annotation types, on the annotation-data that's returned by the PDFPageProxy.getAnnotations method.
Configuration:
Steps to reproduce the problem:
What is the expected behavior?
My goal is to make available the selection on annotations. I can handle the position of rectangles, but impossible to find/get through the API the font or the font-size used during the drawing.
The annotation object doesn't contain it.
My code look like something like that
There is somewhere where I can get the font and have a span in the textLayer matching the annotation text?
Thank for your help :)
(PS: there is a font describe in my PDF, when I open it i can find /F: 4 and it's defined)
The text was updated successfully, but these errors were encountered: