Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

I constantly create square background which I should adjust to artboard size.

Almost every time I miss one or two pixels (Retina is good for that), so I looked for one-click feature "click object to artboard size" and didn't find it.

Probably there is a faster way instead of inserting exact parameters of the artboard to the square dimensions?

Illustrator CS6.

Thanks.

share|improve this question

4 Answers 4

up vote 5 down vote accepted

Just choose Object > Artboards > Fit to Artwork. That will make the artboard fit precisely to the edge of all the artwork, including the background square.

There is no command to scale artwork to match the artboard.

share|improve this answer

Try turning on your Smart Guides: View > Smart Guides or Ctrl+U / option+U. If you aim for a corner on your artboard, you'll get a green 'intersect' mention telling you that you're on the exact edge.

Smart guides help with lots and lots of other aligning tasks, too!

share|improve this answer

If you select the square, there should be a "reference point" square on the "control toolbar". Set the "reference point" of the object to "upper left," and then type in 0,0 for x,y coords and make w,h the same dimensions as the art board.

share|improve this answer
    
i don't know why but 0.0 does not work because of artboard has another coordinates, but I found other alignment buttons and can now just press align to top and left and afterward - the artboard size.... Thanks –  Ilan Dec 6 '13 at 17:27
    
you would need to adjust the ruler or do a little math in this case –  horatio Dec 6 '13 at 17:29
    
yes, I found that clicking in cross point of the H and V rulers and dragging to left-top of artboard zeroes the coordinates... –  Ilan Dec 6 '13 at 17:30

A script that takes care of this for you:

http://gist.github.com/ruandre/7b47cbf2a4c55dac9adb

share|improve this answer
    
Hi Runadre, welcome to GDSE and thanks for your answer! Could you elaborate a bit about what the script does, and how it's called? This way your answer is still valuable at a later time in case the link breaks. Thanks! –  Vincent May 20 at 9:50
    
The script does not work. For me it create a copy of the object of the same size –  Ilan May 20 at 13:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.