Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the uniform type identifier for ePub files?

Tags:

ios

epub

uti

What is the UTI for .epub files?

Read the Developer Library and can't find it anywhere else.

like image 979
Mohamed Elkassas Avatar asked Sep 16 '25 23:09

Mohamed Elkassas


1 Answers

The “Uniform Type Identifiers” framework defines constants for system defined types, such as epub:

A type that represents EPUB format data. The identifier for this type is org.idpf.epub-container.

One can obtain the type identifier at runtime with

import UniformTypeIdentifiers

print(UTType.epub)
// org.idpf.epub-container

Another way is to inspect the Info.plist from an application which can open EPUB files, such as the Books application:

...
<key>LSItemContentTypes</key>
<array>
    <string>org.idpf.epub-container</string>
</array>
...
like image 105
Martin R Avatar answered Sep 19 '25 14:09

Martin R