3 Replies Latest reply on Sep 3, 2013 3:30 PM by CarlosCanto

# Positioning relative to document (not artboard)...

I'm scratching my head trying to figure out how to position an object at the very top left of the document.  By 'document', I mean the whole illustrator white-space that encompasses everything else, including artboards.  When zoomed all the way out, this space is something around 227" in height and width.  Does anyone know how I can reference that top/left corner? I thought that activeDocument.pageOrigin would be the key, but using those numbers positions the object elsewhere.

• ###### 1. Re: Positioning relative to document (not artboard)...

you have to do the math yourself, the left/top coordinates are [-7885, -7795] (at least in my system, I think they all should be the same)

• ###### 2. Re: Positioning relative to document (not artboard)...

Hi CarlosCanto,

I think this is in fact dependent from the version and the zero position of your document too.

Please check this again with another artboardsize.

But IMHO one thing is always the same:

document width = 16383

document height = 16383

2 ^ 14 - 1

• ###### 3. Re: Positioning relative to document (not artboard)...

you are correct sr., it depends on the artboard size, the programs just centers the artboard and assigns its 0,0 to the left/top corner, so

in my first post my artboard was 612 x 792

canvas size 16383, divide that by 2 = 8191.5

artboard width 612, divide that by 2 = 306

canvas/2 - artboard/2 = 7885.5

I wonder if the system rounds up that to 7885.