<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSConvertedDocumentAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSConvertedDocumentAttribute"
  },
  "title" : "NSConvertedDocumentAttribute"
}
-->

# NSConvertedDocumentAttribute

A value that indicates whether a filter service converted the file.

```
extern NSAttributedStringDocumentAttributeKey NSConvertedDocumentAttribute;
```

## Discussion

The value of this attribute is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing an integer. Indicates whether the file was converted by a filter service.

If missing or `0`, the file was originally in the format specified by [`NSDocumentTypeDocumentAttribute`](/documentation/AppKit/NSDocumentTypeDocumentAttribute). If negative, the file was originally in the format specified by document type, but the conversion to <doc://com.apple.documentation/documentation/Foundation/NSAttributedString> may have been lossy. If `1` or more, it was converted to this type by a filter service.

The string constant in macOS 10.3 and earlier is `@"Converted"`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)