I have a requirement to list count of gradient and patterns, ppi value of raster images. If i try to retrieve the count of gradient and patterns,
it lists unused gradrients and patterns. Please help me to list out count which shows in document info.
Here is the code i tried:
ai::int32 idPatternCount = 0;
ai::int32 idGradientsCount = 0;
In the API document, i am not able to find the method to retrieve raster image PPI. Please help me on this.
CountPatterns() & CountGradients just tell you what's in the document pattern & gradient lists, so it makes sense that wouldn't be helpful. I don't think there's anything in the API that lets you know what's 'in use' for anything like that, including symbols or graphic styles as well.
Gradients and patterns - is also swatches. So, perhaps, you can remove unused swatches and then CountGradients and CountPatterns?
Have you tried to work as a functions ValidatePattern and ValidateGradient?