[英]How to open a pdf on the iPad from an AIR for iOS app
I am making an AIR for iOS app that can download pdfs. 我正在制作可以下载pdfs的AIR for iOS应用程序。 I do not want to display the pdf in the app itself but want the default pdf-viewer (iBooks) to launch and show the pdf.
我不想在应用程序本身中显示pdf,但希望默认的pdf-viewer(iBooks)启动并显示pdf。 How can this be done.
如何才能做到这一点。
I am aware that navigateToURL can be used to open a file with the uri scheme of iBooks. 我知道navigateToURL可用于使用iBooks的uri方案打开文件。 But i dont know how to tell iBooks to look in the app-directory of my app.
但我不知道如何告诉iBooks查看我的应用程序的应用程序目录。 (Or is there some secret directory to place the file in from within the app - where iBooks can find it)
(或者是否有一些秘密目录可以将文件放在应用程序中 - iBooks可以在其中找到它)
I have a hard time figuring out what the expected behavior should be. 我很难弄清楚预期的行为应该是什么。 I can open iBooks from the app, but where should i place the file so that iBooks can get to it?
我可以从应用程序打开iBooks,但是我应该在哪里放置文件以便iBooks可以使用它?
Any pointers or help would be greatly appreciated as this is somewhat of a show stopper. 任何指针或帮助将非常感激,因为这有点像一个显示塞子。
如果简单的navigateToURL无法按预期工作,我建议您查看AIR Native Extensions(ANE)和UIDocumentInteractionController (+ blog post )。
Try this library 试试这个库
http://code.google.com/p/pavo/ http://code.google.com/p/pavo/
I haven't used it personally. 我没有亲自使用它。 It this works you will be able to extract text / content and render back in flash / flex application.
它的工作原理你将能够提取文本/内容并在flash / flex应用程序中回放。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.