Skip to content

Instantly share code, notes, and snippets.

@mattiasghodsian
Created November 6, 2019 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattiasghodsian/5a935f81df380b116c7c8b4c8ae25098 to your computer and use it in GitHub Desktop.
Save mattiasghodsian/5a935f81df380b116c7c8b4c8ae25098 to your computer and use it in GitHub Desktop.
How to Fit an object to illustrator art board

Download script from aiscripts.com

Open the zip file and grab the .jsx file to your illustrator Scripts folder (located inside the software installed directory, See examples).

C:\Program Files (x86)\Adobe\Adobe Illustrator CS4\Presets\en_US\Scripts
C:\Program Files\Adobe\Adobe Illustrator CC 2015\Presets\en_US\Scripts

Now open up illustrator with the file containg your object, Select the object and go to (se below)

File > Scripts > fitObjectToArtboard_v2

Keep in mind the input field doesn't really work, maybe in the future.

You may notice there are 2 copies of the object now, the script copies the selected object and re-paste it to the artboard fitting the screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment