Skip to main content
Participant
September 8, 2016
Answered

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

  • September 8, 2016
  • 2 replies
  • 644 views

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 has been closed for replies.
Correct answer Karl Heinz Kremer

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
September 8, 2016

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

Inspiring
September 8, 2016

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).