Skip to main content
Participant
Sep 8, 2016 8:27 AM UTC
Answered

How can I find all instances of a specific font *size* within a PDF?

I want to be able to find all superscript text in the document. I know that the PDF language doesn't actually specify whether text is superscript, so as proxy I want to use a specific font size, which will work in the case of the documents I'm working on.

Is there any way I can do this with Javascript?

This topic is closed to new replies. Start a new post to keep the conversation going.
Karl Heinz  Kremer
Karl Heinz KremerCorrect answer
Community Expert
Sep 8, 2016 12:03 PM UTC

If you have Acrobat Pro, you can use the Preflight tools to get information about fonts and font sizes.

2 replies

Karl Heinz  Kremer
Community Expert
Karl Heinz KremerCommunity ExpertCorrect answer
Community Expert
Sep 8, 2016 12:03 PM UTC

If you have Acrobat Pro, you can use the Preflight tools to get information about fonts and font sizes.

Translate
Inspiring
Sep 8, 2016 9:24 AM UTC

No, JavaScript doesn't have access to such information. It can get words on a page, but no other information about the corresponding text object(s).

Translate