# Clean Document
The cleanDocument method it used for removing unused symbols and swatches from a document before exporting as an Illustrator, PDF or EPS document.
When the method is used, by default both unused symbols and swatches will be removed.
To keep swatches, set the swatches
property to false
.
To keep symbols, set the symbols
property to false
.
To remove both unused swatches and symbols used the *
, swatches
or symbols
properties and leave the values blank or set to true
.
# Clean Properties
Mode | Description |
---|---|
* | Leave blank if you want both unused swatches and symbols removed. |
skip | skip is a generic property for all methods, when set to true, the method will be skipped. See * and Skip for details. Valid Values: true or false |
swatches | Set to false if you do not want unused swatches to be removed. Valid Values: false , true |
symbols | Set to false if you do not want unused symbols to be removed. Valid Values: false , true |
# Example CleanDocument Spreadsheet
* | |||
clean | comment | ||
* | swatches | symbols | * |
With no values given, will remove both unsused swatches and symbols | |||
FALSE | Will only remove symbols | ||
FALSE | Will only remove swatches | ||
TRUE | If there are no other properties on the table 🤨 and it's the last row in the table, you need to set a true value. |
# Sample Download Links
Download: clean-document.csv
Download: clean-document.ai
Download: clean-document.zip