Skip to main content
Sep 6, 2016 8:56 AM UTC
Question

How to find the font name and size in PDF with javascript

Hi,

I want to find out the font size of the pdf document and I wanted to bookmark if font size is equals 14.  Is there any to find out the font size?

Ariv

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Bernd Alheit
Community Expert
Community Expert
Sep 6, 2016 9:01 AM UTC

With JavaScript you can't access font name and font size.

Translate
Sep 6, 2016 9:24 AM UTC

I can able to change this manually by using Tools -> Edit PDF and in Format I can able to get the font name and size.  is this possible through Javascript?

Translate
Bernd Alheit
Community Expert
Community Expert
Sep 6, 2016 9:50 AM UTC

Not possible with Acrobat JavaScript.

Possible with a Acrobat plugin (written in C/C++).

Translate