[英]Library to identify the MIME Type of InDesign files in Python
Anybody knows a library that helps to identify InDesign files? 谁知道一个有助于识别InDesign文件的库?
I was trying python-magic
, but i got application/octet-stream
for .indd
files and application/zip
for .idml
files (I know this is a zip file indeed). 我正在尝试python-magic
,但是我得到了.indd
文件的application/octet-stream
和.idml
文件的application/zip
(我知道这确实是一个zip文件)。
I'm aware there is no official MIME type for InDesign (it does not appear in the IANA's listing: http://www.iana.org/assignments/media-types/application/index.html ) but, it could be great if somebody knows a library that gives application/x-indesign
or application/vnd.adobe.indesign-idml-package
or whatever for these kind of files. 我知道InDesign没有正式的MIME类型(它没有出现在IANA的列表中: http : //www.iana.org/assignments/media-types/application/index.html ),但是可能很棒如果有人知道提供了application/x-indesign
或application/vnd.adobe.indesign-idml-package
或此类文件的库。 I need a library, not an external/online service. 我需要一个图书馆,而不是外部/在线服务。 Thanks 谢谢
FWIW, Adobe provides a library for investigating XMP metadata where you will find information about the application that generated the file. FWIW,Adobe提供了一个用于研究XMP元数据的库,您可以在其中找到有关生成文件的应用程序的信息。 I am not sure how it can help but just in case: http://www.adobe.com/devnet/xmp.html 我不确定它可以如何帮助您,但以防万一: http : //www.adobe.com/devnet/xmp.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.