Google drive api 谷歌驱动器mime类型不正确(谷歌认为这不是PDF?);

Google drive api 谷歌驱动器mime类型不正确(谷歌认为这不是PDF?);,google-drive-api,google-docs-api,google-api-java-client,google-drive-realtime-api,Google Drive Api,Google Docs Api,Google Api Java Client,Google Drive Realtime Api,我从google drive(使用Java)获取文件 一切正常但是,当我看到pdf文档mime类型 file.getMimeType() 它是这样的:application/vnd.googleapps.document 它不是应用程序/pdf 问题1:为什么我在谷歌硬盘上的PDF文件使用mime类型application/vnd.google apps.document 问题2: 我需要筛选我的文档,以便仅获取PDF文档: 但这是行不通的!谷歌认为我的PDF是“vnd.googleapps.

我从google drive(使用Java)获取文件 一切正常但是,当我看到pdf文档mime类型

file.getMimeType()
它是这样的:application/vnd.googleapps.document 它不是应用程序/pdf

问题1:为什么我在谷歌硬盘上的PDF文件使用mime类型application/vnd.google apps.document

问题2:

我需要筛选我的文档,以便仅获取PDF文档: 但这是行不通的!谷歌认为我的PDF是“vnd.googleapps.document”


最近我读了很多评论,说驱动PDF已经可以编辑了。我猜你上传的PDF是convert=true,所以Drive将它们转换成了文档。为了防止出现这种情况,请确保convert=false。

我最近阅读了一些评论,认为驱动器PDF已成为可编辑的。我猜你上传的PDF是convert=true,所以Drive将它们转换成了文档。为防止出现这种情况,请确保convert=false。

上载PDF文件时,是使用convert=true还是convert=false上载的?上载PDF文件时,是使用convert=true还是convert=false上载的?
 String mime ="application/pdf"; //works when I set vnd.google-apps.document
 String query="'"+id+"'" +" in parents and trashed=false and and mimeType="+mime;
 FileList files = service.files().list().setQ(query).execute();