Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87158

Resize artboard to content - works in Mac (CS6), not Win (CC)

$
0
0

Hello!

This code works perfectly in Illustrator CS6 for Mac:

 

function resizeArtboard() {

            app.redraw();

            app.activeDocument.artboards[0].artboardRect = app.activeDocument.visibleBounds;

            app.redraw();

}

 

It works like the menu option "Shrink artboard to fit content".

 

However, running this script in Illustrator CC for Windows, the result is different: the content is enlarged to fit the artboard instead.

 

How can I solve this?

 

Thanks in advance!

 

/Måns


Viewing all articles
Browse latest Browse all 87158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>