I hope someone will help me to Solve my Problem.
I'm Trying to extract Text from a PDF.
I've reached it with GetJSObject's getPageNthWord property.
Now, the issue i'm facing is, i'm unable to get Font Name & Size of the Selected Text.
Any Help will be Highly appriciated.
Thanks in Advance,
You can get the size of the word by using getPageNthWordQuads, which will
return an array of quads that define the area surrounding the word. From
that you can calculate the actual size of the word.
Hence the BaseLine and upLine will differ for few characters, i don't think that this way will return the actual Font-Size of the Text.
Is there any other way to Get Font name & Size (Which is used in the PDF)?
Not with a script. You can try asking in the Acrobat SDK forum.