Skip to main content
Participant
December 2, 2024
Question

Editing the dimention of rectangle in Acrobat pro

  • December 2, 2024
  • 2 replies
  • 451 views

Using acrobat pro. My requirement is to create a rectangle on a pdf file of specified dimentions. For example, even if I draw a reactangle free handedly, after giving 10*10mm lenghth & height, the rectangle should measure 10*10mm. After right clicking on rectangle it is allowing me to only change colour, line thickness, style etc.  See the attached screenshot for better clarity.

 

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
December 2, 2024

You can do it with a script. Select the Rectangle and then run this code from the JS Console and it will be resized to 10x10mm, aligned to the top-left corner of the original:

 

var mm = 2.83465;
var myAnnot = this.getAnnots()[0];
var r = myAnnot.rect;
r[2] = r[0]+(10*mm);
r[1] = r[3]-(10*mm);
myAnnot.setProps({rect: r});
Bernd Alheit
Community Expert
Community Expert
December 2, 2024

You can't change the dimensions in the properties.