I'm developing a sample app that user can read pdf file, pdf files in my app bundle and i use web view to read these files. Now i want to add a button that allow user click to and copy pdf file to iBooks library, that means when user perform this action, after that, when user opens iBooks app, this PDF file is already available in library of iBooks. Any idea for this problem, plz helps me, thanks alot. PS: i want to make as this link, but i dont want open pdf file immediately in iBooks when user click button, i just want when user open ibooks after that anytime, user can see this pdf book in book shelf
Copy PDF file to iBooks library [closed]
If there isn't an API for it, don't bother trying. –
Cataplasia
i don't want to open pdf file in iBooks immediately, i just want copy this pdf file to some where in my ipad and then when user open iBooks app, this pdf file is already available in library of iBooks –
Tombaugh
Cole's right. If you do it without using an API, Apple will make a rule to stop you doing it. –
Churrigueresque
There is not an API available for directly adding content to iBooks, unfortunately.
How it works is your app uses a UIDocumentInteractionController
to present the user with the ability to open the PDF in an application that supports the file type that you specify to the controller. One of those apps would be iBooks, if it is installed on the user's device.
Additional Resources:
Hi Wayne, If a pdf file is downloaded using safari it is appeared in iBooks menu automatically. Isn't it possible that I download a pdf using my application and make the pdf file appear automatically in iBooks. If not How can safari do that? –
Feder
@BurakKarasoy you will find that Apple often give themselves APIs that we do not have access to... –
Brewis
thank you Wayne, Safari can access those APIs but we can not ? –
Feder
© 2022 - 2024 — McMap. All rights reserved.