Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
May 30, 2018 May 30, 2018

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

TOPICS
Edit and convert PDFs
13.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
May 31, 2018 May 31, 2018

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

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2018 May 30, 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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2018 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

Did you select the entire code before pressing Ctrl+Enter?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2018 May 31, 2018

Yes.

In a further attempt I copied and pasted via Notepad++, to make sure only ascii was copied.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

And what was the result, exactly? Did some message appear in the console after you ran the script?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

Take a look at this tutorial for the JavaScript console in Acrobat: https://acrobatusers.com/tutorials/javascript_console

Are you using the Windows version of Acrobat? If you are on a Mac, you would use the Cmd key.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2018 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

This usually means that you did not actually select an annotation, so the selectedAnnots property of the current document not undefined.  Make sure that your text box is actually selected before you run the script.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2018 May 31, 2018

Many thanks, now sorted.

As you may gather I don't often edit documents in Acrobat!

Is there any reason why I can't do this directly?

Many thanks to all those who have had an input to this topic.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 24, 2021 Dec 24, 2021

Thank you for the question and the reply that helped me too.

After changing the font size to 2 pt, I would like to reduce the line spacing of the text comment box to match the font size; but the minimum spacing I get with the tool button "reduce line spacing" reaches its minimum spacing at level that is roughly four times too much. Can anybody help me to do similar adjustment to the linespacing via javascript?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 18, 2023 Jul 18, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines