How to change the issues from .pdf to .html?
First of all I would like You to know how helpful this tutorial and code were to me as they really explain a wide spectrum of needed knowledge while there are almost no other newsstand development tutorials. Really, thanks so much.
I would like to make an issue in html so instead of downloading a .pdf document, the store should download a folder and open index.html from it. How do I change the project to do so?
Hi,
the magazine app is independent on the final content of the pages. You can download a single PDF file or download a ZIP and then unpackage it to its internal html files. In my example app I implemented the pdf reader in the quickest way, using the internal iOS SDK QuickLook framework, which can manage html files too. So what my app does is to download the pdf file in the documents folder. In your case you should change the code to download the zip file, create a folder, extract the content and then remove the zip. Finally the app should link to the index.html file inside the folder instead of the standalone pdf files.
Consider the fact that working with folders is much more better than using single files, as you can provide together with the document (pdf, html, epub) some extra content (mp3, mov, ...). Besides Apple provides with the iOS SDK (since iOS 5) the "bundled document", which is all in all a way to represent a folder and its content as a single file (you can see all details in the docs). Changing the code to support this feature could give you some advantages.
Carlo
On Jul 5, 2012, at 23:24 , ValKalinic wrote:
First of all I would like You to know how helpful this tutorial and code were to me as they really explain a wide spectrum of needed knowledge while there are almost no other newsstand development tutorials. Really, thanks so much.
I would like to make an issue in html so instead of downloading a .pdf document, the store should download a folder and open index.html from it. How do I change the project to do so?
Reply to this email directly or view it on GitHub: https://github.com/viggiosoft/HowToMakeAMagazineApp/issues/5