Skip to main content
Known Participant
September 1, 2023
Question

Using large size artboard will scale the item?

  • September 1, 2023
  • 1 reply
  • 380 views

I created a large size artboard and inserted a rectange, I found the size of rectange will be scaled by 10 times.

 

var app = new Illustrator.Application();
var doc = app.Documents.Add(
    Illustrator.AiDocumentColorSpace.aiDocumentCMYKColor,
    27040,
    14810);
var item = doc.PathItems.Rectangle(762.5, 87.5, 300, 100); // width 300pt

 

 

the width of the rect is 3000pt but it should be 300pt.

This topic has been closed for replies.

1 reply

m1b
Community Expert
Community Expert
September 1, 2023

Hi @LoveYou阿逗逼6666, yes this is how Large Size Documents works from the scripting API point of view. In Large Size Documents you must take the Document.scaleFactor into account to calculate final sizes. - Mark

Known Participant
September 1, 2023

you are right! can i disable the scale feature?

m1b
Community Expert
Community Expert
September 1, 2023

I think you must make a new document that isn't as large. There is a threshold where if you make the document size too large it becomes a "Large Document".