Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
You can't change the dimensions in the properties.
Copy link to clipboard
Copied
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});
Find more inspiration, events, and resources on the new Adobe Community
Explore Now