Artboard Content Cropper
Script for Adobe Illustrator
✦ Available exclusively on Patreon for Pro supporters.
ㅤ
Description
The Artboard Content Cropper is an Adobe Illustrator script that allows you to crop or mask content to artboard boundaries with precision and flexibility. This tool is essential for preparing artwork for export, creating clean layouts, or isolating specific content within artboard boundaries.
The script offers two main processing methods:
- Crop Content: Permanently removes parts of objects that extend beyond artboard boundaries
- Mask Content: Uses clipping masks to hide content outside artboard boundaries (non-destructive)
ㅤ
Key Features
- Dual Processing Methods: Choose between destructive cropping or non-destructive masking
- Flexible Target Selection: Process all artboards, current artboard, selected artboards, or selected objects only
- Margin Control: Add positive or negative margins to expand or shrink the processing area
- Advanced Processing Options: Handle hidden/locked items and raster/placed/mesh objects
- Resolution Control: Customize resolution for rasterized elements during cropping
- Search and Filter: Quickly find specific artboards by name
ㅤ
Installation
1. Download the Smart Artboard Content Cropper.jsx script file.
2. Place the script in your Adobe Illustrator Scripts folder:
⮑ Mac: /Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
3. Restart Adobe Illustrator if it's already running.
ㅤ
Using the Script
- Open your Illustrator document with content
- Access the script via File > Scripts > Artboard Content Cropper.
- The dialog window will appear with multiple options:
ㅤ

ㅤ
➊ Choose Processing Method
In the "Processing Method" panel:
- Select Crop Content for permanent cropping (removes content outside boundaries)
- Select Mask Content for non-destructive masking (hides content using clipping masks)
ㅤ
Configure Margin Settings (Optional)
In the margin controls:
- Check Add Margin to enable margin adjustment
- Use the slider or input field to set margin value
- Positive values: Expand the processing area beyond artboard boundaries
- Negative values: Shrink the processing area within artboard boundaries
- Use arrow keys in the input field for precise adjustment:
- Arrow keys: ±1 unit; Shift + Arrow keys: ±10 units
ㅤ
ㅤ
➋ Select Processing Target
In the "Processing Target" panel, choose one:
- Process All Artboards: Processes every artboard in the document
- Current Artboard Only: Processes only the currently active artboard
- Selected Artboards: Processes artboards selected from the list below
- Selected Objects Only: Processes only currently selected objects
ㅤㅤ
➌ Select Specific Artboards
When "Selected Artboards" is chosen:
- Use the Search field to filter artboards by name
- Click the × button to clear the search
- Select artboards from the list (hold Ctrl/Cmd for multiple selections)
- Double-click an artboard name to zoom to it in the document
ㅤ
ㅤ
❹ Configure Advanced Processing Options
In the "Advanced Processing" panel:
Process Hidden & Locked Items
- Checked: Temporarily unlocks and shows hidden/locked items during processing
- Unchecked: Skips hidden and locked items
ㅤ
Process Raster/Placed/Mesh Items (Crop mode only)
- Checked: Processes raster images, placed items, and mesh objects
- Unchecked: Skips these item types
- Note: Only available in Crop mode
ㅤ
Resolution Settings (when raster processing is enabled)
Choose from the dropdown:
- Screen (72 ppi): Low resolution for screen use
- Medium (150 ppi): Medium resolution for general print
- High (300 ppi): High resolution for quality print
- Use Document Raster Effects Resolution: Uses document's current setting
- Custom Resolution: Enter a custom PPI value (16-5000)
ㅤ
ㅤ
➎ Additional Controls
- Cancel: Close the dialog without processing
- ✚ (Fit All): Fit all artboards in the window view
- ⏼ Open user guide
ㅤ
ㅤ
☻ Tips and Best Practices
ㅤ
For Crop Mode:
- Backup your document before cropping, as this process is destructive
- Enable "Process Raster/Placed/Mesh Items" for complete processing of all content types
- Use higher resolutions (300 ppi) for print-intended artwork
- Consider using margins to ensure no content is accidentally clipped at artboard edges
ㅤ
For Mask Mode:
- Ideal for non-destructive workflows where you might need to adjust later
- Preserves original artwork while hiding content outside artboard boundaries
- Creates grouped masked content for easy management
- Lower performance impact as no rasterization occurs
ㅤ
General Tips:
- Use the search function for documents with many artboards
- Double-click artboard names to quickly navigate to them
- Test with a copy of your document first to understand the results
- Process hidden/locked items when you want comprehensive coverage
ㅤ
ㅤ