Newbie wants to create a PDF reader for ipod touch - what's the best approach?

时光毁灭记忆、已成空白 提交于 2019-12-17 18:58:56

问题


I want to make a small app that displays a PDF, presenting zoom-able single pages with a previous-next page function.


回答1:


The Core Graphics API is pretty much the same in Cocoa and Cocoa touch. Read up on CGPDFDocument, it should provide you with everything you will need to render PDF pages. You won't need to read the PDF spec or use a library to parse PDF files directly. You will probably to learn more about Core Graphics / Quartz 2D / etc. to understand how to use those functions inside of a Cocoa app.




回答2:


Based on the gradually evolving Apple policy of rejecting application submissions that duplicate functionality already on the iPhone I would worry about spending too much time even as a newbie on something that is part of the core iPhone feature-set.




回答3:


This is pretty trivial. The CGPDFDocument functions will allow you to do anything you'd want to do with a PDF file.




回答4:


The iPhone and iPod touch can view PDFs already, as one of the TV adverts in the UK shows an email with a .pdf attachment (of swimming lessons) being viewed. It can also view .doc, .xls, and so on, so if he is creating a viewer type application then supporting those as well could be a nice feature addition later on.

This means there is a PDF framework on these devices that you will need to access. Presumably Apple can provide support here if he is a paid up developer. Syncing the PDFs to the device is the actual real difficulty, as this isn't supported by iTunes. I assume that you would need to write a network based synchronisation tool, or have an online cloud for holding people's PDFs.

The device doesn't support Flash, so using PDF to Flash conversion tools will not work.




回答5:


I found this HTML5 framework that should work on an iPad http://bakerframework.com/ but I didn't test it yet.



来源:https://stackoverflow.com/questions/93297/newbie-wants-to-create-a-pdf-reader-for-ipod-touch-whats-the-best-approach

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!