Is it possible to get the list of all the fonts and colors used in the active illustrator document (.ai file) ?
if yes then how?
thanx in advance...
Certainly doable, but you'd have to iterate the document and build up the list yourself. Font would be pretty easy, because that's only text objects. Colour is a little trickier, just because colour can hide in so many places, but you can get a pretty good result fairly easily.
Colors is actually easy too. In the AIPathStyleSuite, check the function AdjustObjectAIColors. There's some stuff in the docs that give the general idea of how you'd catalogue all the colors used in a document.
I thought about AdjustObjectAIColors, and its a good way to get a bunch of them but I'm not 100% sure if it covers all colours or just those found in paths. If not, this would exclude colours on effects & overlays for symbols, found in kPluginArt (though there is a similar function for plugin art specifically) and I imagine text. Probably a few other types if we look hard enough. Granted, paths are probably 90% of colours 🙂 I also wondered (sinc I haven't tried it before) how comprehensive that method is -- does it hit all the colours in various effects & styles layered on path? Or does it just hit the standard stroke & fill? I assume not, but I don't know.
Well... it definitely goes into pattern fills/strokes as I've had to do that. As for the others, my guess is probably, but it'd have to be tested. It seems that this is the intended method for doing this based on what's in the documentation.
I usually go to Print, then click on 'output' and it lists all the colours used in there. I'm not 100% sure on how foolproof it is, so I do go through the document nit-picking just in case..
Go to > Type > find font - (inside it) check all include in list - and click the "save list" button
Thank you very much!
Have a french localization so if you want to see all colors used in the document it's under Fenêtre/Nuancier (Windows/??? it is usually under Navigation). There you have all the colors used in the document and there you can change Swap colors to CMYK and invers… Hope this is what you were looking for… Cheers
Select all objects -----> swatches panel ------> drop down icon in top right corner -----------> add selected colours
1. Open swatches panel , then from"fly menu" select "Unused colors" and then delete them. Than you will have only used colors in your swatch panel.. You can save that color group.
2. You can delete all swatches and then add your document colors to swatches from artboard or from selected object.
3. For font you can go to Fill-package. Package your file - will include all your fonts and will generate also report file.
oh my gosh thanks for this totally worked for me
Depending on your use case, this might also be practical:
"Save a copy..." to SVG, using
...and open the SVG in a text editor. All colors will be represented in the top of the file as CSS properties.
In additon to this, you can (using the Mac command line), get a list of unique colors in the SVG document:
grep -o \#...... colors.svg | sort | uniq