Adobe 65010248 Scripting Guide - Page 30

Art item bounds

Page 30 highlights

CHAPTER 3: Scripting Illustrator Page-item positioning and dimensions 30 You can see these coordinates in the Info panel when you select or create an object in Illustrator. The default ruler origin point (0, 0) for coordinate numbering in Illustrator is the lower-left corner of the document. (ruler origin is a property of the document object) On the horizontal axis, coordinates to the right of the ruler's zero point are positive numbers. On the vertical axis, coordinates above the zero point are positive. The default page origin property of a document object defines the lower-left corner of the printable region of the document as a fixed point. Also, each page item object has width and height properties. The maximum value allowed for the width or height of a page item is 16348 points. Art item bounds Every page item object has three properties that use fixed rectangles to describe the object's overall extent: ➤ The geometric bounds of a page item are the rectangular dimensions of the object's bounding box, excluding stroke width. ➤ The visible bounds of a page item are the dimensions of the object, including any stroke widths. ➤ The control bounds define the rectangular dimensions of the object, including in and out control points. The following figure illustrates these properties, using JavaScript naming conventions.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57

C
HAPTER
3: Scripting Illustrator
Page-item positioning and dimensions
30
You can see these coordinates in the Info panel when you select or create an object in Illustrator.
The default
ruler
origin
point (0, 0) for coordinate numbering in Illustrator is the lower-left corner of the
document. (
ruler
origin
is a property of the
document
object) On the horizontal axis, coordinates to the
right of the ruler’s zero point are positive numbers. On the vertical axis, coordinates above the zero point
are positive.
The default
page
origin
property of a
document
object defines the lower-left corner of the printable
region of the document as a fixed point.
Also, each
page
item
object has
width
and
height
properties. The maximum value allowed for the width
or height of a page item is 16348 points.
Art item bounds
Every
page
item
object has three properties that use fixed rectangles to describe the object’s overall
extent:
The
geometric
bounds
of a page item are the rectangular dimensions of the object’s bounding box,
excluding stroke width.
The
visible
bounds
of a page item are the dimensions of the object, including any stroke widths.
The
control
bounds
define the rectangular dimensions of the object, including in and out control
points.
The following figure illustrates these properties, using JavaScript naming conventions.