Skip to main content
Mikexx
Participating Frequently
May 30, 2018
Answered

How to reduce font size to less than 6? (Acrobat XI Pro)

  • May 30, 2018
  • 2 replies
  • 13383 views

I'm adding text to an existing pdf document where I am trying to match the font already used. The existing objects do not seem to be standard text comments that I can edit.

As a result I am using "Add Text Comment" using the Helvetica font.

However the smallest font size I can select is 6, and this is still larger than the font I am trying to match. I can't simply type another number in the size box like i can with MS Word.

How do I reduce the size further, probably 5 will be sufficient, maybe 4?

The sheet is currently A4, and I was wondering if I could increase the paper size where it all might scale and size 6 might then be fine. Is this possible?

Any help would be appreciated

This topic has been closed for replies.
Correct answer try67

First of all I now have the correct boxes ticked as per article.

I highlighted the text in question using and got the Add Text Comment Box.

Ctrl-J to get the JavaScript Debugger.

I pasted the script into the Console window, selected the script, and then entered Ctrl-Enter

This is the final window:

var rc = this.selectedAnnots[0].richContents;

var s0 = rc[0];

s0.textSize=4;

var newRc = [s0];

this.selectedAnnots[0].richContents = newRc;

TypeError: this.selectedAnnots is undefined

1:Console:Exec

undefined


Do not select the text in the comment, but the comment itself, via the Comments List panel.

2 replies

Participant
July 18, 2023

I couldnt get the advise below to work but I found that if you go to edit mode and insert text, you can change the font size there rather than messing around with javascript. Hope this helps anyone with the same problem in the future.

try67
Community Expert
Community Expert
May 31, 2018

It can be done using a script. Select the comment with the mouse, press Ctrl+J, paste this code into the Console window that opens, select all of it using the keyboard/mouse and press Ctrl+Enter:

var rc = this.selectedAnnots[0].richContents;

var s0 = rc[0];

s0.textSize=4;

var newRc = [s0];

this.selectedAnnots[0].richContents = newRc;

Mikexx
MikexxAuthor
Participating Frequently
May 31, 2018

Many thanks for your reply.

When I first typed Ctrl+J I got a JavaSript Debugger window where all elements were empty.

I presume this has to be enabled in Edit > Preferences > JavaScript > Enabled JavaScript debugger after Acrobat is restarted.

If I add text through Fill and Sign Tools > Add Text etc,after Ctrl-J I now get a JavaSript Debugger window with a tree called Bookmark in 'Scripts'.

If I copy your script and press Ctrl-Enter, nothing happens.

What am I doing wrong?

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 31, 2018

First of all I now have the correct boxes ticked as per article.

I highlighted the text in question using and got the Add Text Comment Box.

Ctrl-J to get the JavaScript Debugger.

I pasted the script into the Console window, selected the script, and then entered Ctrl-Enter

This is the final window:

var rc = this.selectedAnnots[0].richContents;

var s0 = rc[0];

s0.textSize=4;

var newRc = [s0];

this.selectedAnnots[0].richContents = newRc;

TypeError: this.selectedAnnots is undefined

1:Console:Exec

undefined


Do not select the text in the comment, but the comment itself, via the Comments List panel.