Hello the API docs say theres a document.cleanup() method i can call to remove unused styles and lists.
When i call this method i get the following error:
‘Document’ does not contain a definition for ‘Cleanup’ and no extension method ‘Cleanup’ accepting a first argument of type ‘Document’ could be found (are you missing a using directive or an assembly reference?)
Why does the cleanup method refer to the Aspose.Words assembly and not the Aspose.Words.Document assembly?
the method is attached to the Document object.