Browse files

01082012

- Quite a few bug and memory leaks fixed
- Support for external CJKCmaps
- Added a few features to the embedded bottom view
  • Loading branch information...
1 parent 649cd33 commit f3e8aeeaa370e56dcb44932d7b377f7439fac843 @s1g53gv s1g53gv committed Aug 1, 2012
Showing with 2,634 additions and 14 deletions.
  1. BIN Bundle/AudioViewController.nib
  2. BIN Bundle/BookmarkView.nib
  3. BIN Bundle/FPKKioskBundle.bundle/Info.plist
  4. BIN Bundle/FPKKioskBundle.bundle/Kiosk_ipad.nib
  5. BIN Bundle/FPKKioskBundle.bundle/Kiosk_phone.nib
  6. BIN Bundle/FPKKioskBundle.bundle/backThumb.png
  7. BIN Bundle/FPKKioskBundle.bundle/backThumb@2x.png
  8. BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone.png
  9. BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone@2x.png
  10. BIN Bundle/FPKKioskBundle.bundle/border.png
  11. BIN Bundle/FPKKioskBundle.bundle/download.png
  12. BIN Bundle/FPKKioskBundle.bundle/download@2x.png
  13. BIN Bundle/FPKKioskBundle.bundle/header.png
  14. BIN Bundle/FPKKioskBundle.bundle/header@2x.png
  15. BIN Bundle/FPKKioskBundle.bundle/header_iphone.png
  16. BIN Bundle/FPKKioskBundle.bundle/header_iphone@2x.png
  17. +60 −0 Bundle/FPKKioskBundle.bundle/kiosk_list.xml
  18. BIN Bundle/FPKKioskBundle.bundle/pause.png
  19. BIN Bundle/FPKKioskBundle.bundle/pause@2x.png
  20. BIN Bundle/FPKKioskBundle.bundle/remove.png
  21. BIN Bundle/FPKKioskBundle.bundle/remove@2x.png
  22. BIN Bundle/FPKKioskBundle.bundle/resume.png
  23. BIN Bundle/FPKKioskBundle.bundle/resume@2x.png
  24. BIN Bundle/FPKKioskBundle.bundle/view.png
  25. BIN Bundle/FPKKioskBundle.bundle/view@2x.png
  26. BIN Bundle/FPKReaderBundle.bundle/AudioViewController.nib
  27. BIN Bundle/FPKReaderBundle.bundle/BookmarkView.nib
  28. BIN Bundle/FPKReaderBundle.bundle/Info.plist
  29. BIN Bundle/FPKReaderBundle.bundle/OutlineView.nib
  30. BIN Bundle/FPKReaderBundle.bundle/SearchView2_pad.nib
  31. BIN Bundle/FPKReaderBundle.bundle/SearchView2_phone.nib
  32. BIN Bundle/FPKReaderBundle.bundle/TextDisplayView.nib
  33. BIN Bundle/FPKReaderBundle.bundle/WebBrowser.nib
  34. BIN Bundle/FPKReaderBundle.bundle/X.png
  35. BIN Bundle/FPKReaderBundle.bundle/X@2x.png
  36. BIN Bundle/FPKReaderBundle.bundle/blackslider.png
  37. BIN Bundle/FPKReaderBundle.bundle/bookmark_add.png
  38. BIN Bundle/FPKReaderBundle.bundle/bookmark_add@2x.png
  39. BIN Bundle/FPKReaderBundle.bundle/changeModeDouble.png
  40. BIN Bundle/FPKReaderBundle.bundle/changeModeDouble@2x.png
  41. BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow.png
  42. BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow@2x.png
  43. BIN Bundle/FPKReaderBundle.bundle/changeModeSingle.png
  44. BIN Bundle/FPKReaderBundle.bundle/changeModeSingle@2x.png
  45. BIN Bundle/FPKReaderBundle.bundle/close.png
  46. BIN Bundle/FPKReaderBundle.bundle/close_player.png
  47. BIN Bundle/FPKReaderBundle.bundle/direction_l2r.png
  48. BIN Bundle/FPKReaderBundle.bundle/direction_l2r@2x.png
  49. BIN Bundle/FPKReaderBundle.bundle/direction_r2l.png
  50. BIN Bundle/FPKReaderBundle.bundle/direction_r2l@2x.png
  51. BIN Bundle/FPKReaderBundle.bundle/img_outline_triangledown.png
  52. BIN Bundle/FPKReaderBundle.bundle/img_outline_triangleright.png
  53. BIN Bundle/FPKReaderBundle.bundle/indice.png
  54. BIN Bundle/FPKReaderBundle.bundle/indice@2x.png
  55. BIN Bundle/FPKReaderBundle.bundle/next.png
  56. BIN Bundle/FPKReaderBundle.bundle/pagelead.png
  57. BIN Bundle/FPKReaderBundle.bundle/pagelead@2x.png
  58. BIN Bundle/FPKReaderBundle.bundle/pause_player.png
  59. BIN Bundle/FPKReaderBundle.bundle/play_player.png
  60. BIN Bundle/FPKReaderBundle.bundle/prew.png
  61. BIN Bundle/FPKReaderBundle.bundle/reload.png
  62. BIN Bundle/FPKReaderBundle.bundle/search.png
  63. BIN Bundle/FPKReaderBundle.bundle/search@2x.png
  64. BIN Bundle/FPKReaderBundle.bundle/stop.png
  65. BIN Bundle/FPKReaderBundle.bundle/text.png
  66. BIN Bundle/FPKReaderBundle.bundle/text@2x.png
  67. BIN Bundle/FPKReaderBundle.bundle/zoomLock.png
  68. BIN Bundle/FPKReaderBundle.bundle/zoomLock@2x.png
  69. BIN Bundle/FPKReaderBundle.bundle/zoomUnlock.png
  70. BIN Bundle/FPKReaderBundle.bundle/zoomUnlock@2x.png
  71. BIN Bundle/Info.plist
  72. BIN Bundle/OutlineView.nib
  73. BIN Bundle/SearchView2_pad.nib
  74. BIN Bundle/SearchView2_phone.nib
  75. BIN Bundle/TextDisplayView.nib
  76. BIN Bundle/WebBrowser.nib
  77. BIN Bundle/X.png
  78. BIN Bundle/X@2x.png
  79. BIN Bundle/blackslider.png
  80. BIN Bundle/bookmark_add.png
  81. BIN Bundle/bookmark_add@2x.png
  82. BIN Bundle/changeModeDouble.png
  83. BIN Bundle/changeModeDouble@2x.png
  84. BIN Bundle/changeModeOverflow.png
  85. BIN Bundle/changeModeOverflow@2x.png
  86. BIN Bundle/changeModeSingle.png
  87. BIN Bundle/changeModeSingle@2x.png
  88. BIN Bundle/close.png
  89. BIN Bundle/close_player.png
  90. BIN Bundle/direction_l2r.png
  91. BIN Bundle/direction_l2r@2x.png
  92. BIN Bundle/direction_r2l.png
  93. BIN Bundle/direction_r2l@2x.png
  94. BIN Bundle/img_outline_triangledown.png
  95. BIN Bundle/img_outline_triangleright.png
  96. BIN Bundle/indice.png
  97. BIN Bundle/indice@2x.png
  98. BIN Bundle/next.png
  99. BIN Bundle/pagelead.png
  100. BIN Bundle/pagelead@2x.png
  101. BIN Bundle/pause_player.png
  102. BIN Bundle/play_player.png
  103. BIN Bundle/prew.png
  104. BIN Bundle/reload.png
  105. BIN Bundle/search.png
  106. BIN Bundle/search@2x.png
  107. BIN Bundle/stop.png
  108. BIN Bundle/text.png
  109. BIN Bundle/text@2x.png
  110. BIN Bundle/zoomLock.png
  111. BIN Bundle/zoomLock@2x.png
  112. BIN Bundle/zoomUnlock.png
  113. BIN Bundle/zoomUnlock@2x.png
  114. BIN ...endedApp.xcodeproj/project.xcworkspace/xcuserdata/nick.xcuserdatad/UserInterfaceState.xcuserstate
  115. +25 −1 FPKCore/FPKGlyphBox.h
  116. +14 −0 FPKCore/FPKOverlayViewDataSource.h
  117. +6 −2 FPKCore/MFDocumentManager.h
  118. +27 −0 FPKCore/MFDocumentViewController.h
  119. +5 −1 FPKCore/MFPDFOutlineEntry.h
  120. +10 −2 FPKCore/Stuff.h
  121. BIN FPKCore/libFastPdfKit.a
  122. +1 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/FastPdfKit
  123. +1 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Headers
  124. +1 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Resources
  125. BIN FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/FastPdfKit
  126. +35 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/AudioViewController.h
  127. +46 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/BookmarkViewController.h
  128. +23 −0 ...PdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/BookmarkViewControllerDelegate.h
  129. +24 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKAnnotation.h
  130. +42 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKGlyphBox.h
  131. +37 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKOverlayViewDataSource.h
  132. +20 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKURIAnnotation.h
  133. +33 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FastPdfKit.h
  134. +6 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FastPdfKitFramework-Prefix.pch
  135. +27 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFAudioPlayerViewImpl.h
  136. +33 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFAudioPlayerViewProtocol.h
  137. +34 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFAudioProvider.h
  138. +183 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentManager.h
  139. +45 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentOverlayDataSource.h
  140. +476 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentViewController.h
  141. +126 −0 ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentViewControllerDelegate.h
  142. +19 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFOverlayDrawable.h
  143. +19 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFOverlayTouchable.h
  144. +46 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFPDFOutlineEntry.h
  145. +24 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFPDFOutlineRemoteEntry.h
  146. +65 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFTextItem.h
  147. +55 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MiniSearchView.h
  148. +19 −0 ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MiniSearchViewControllerDelegate.h
  149. +32 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/NotificationFactory.h
  150. +28 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/OutlineViewController.h
  151. +23 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/OutlineViewControllerDelegate.h
  152. +172 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/ReaderViewController.h
  153. +52 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/SearchManager.h
  154. +30 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/SearchResultCellView.h
  155. +16 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/SearchResultDataSource.h
  156. +31 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/SearchResultView.h
  157. +45 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/SearchViewController.h
  158. +24 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/SearchViewControllerDelegate.h
  159. +291 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/Stuff.h
  160. +34 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/TextDisplayViewController.h
  161. +19 −0 ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/TextDisplayViewControllerDelegate.h
  162. +27 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/TextSearchOperation.h
  163. +29 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/WebBrowser.h
  164. +52 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/mfprofile.h
  165. BIN ...ramework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/AudioViewController.nib
  166. BIN ...beddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/BookmarkView.nib
  167. BIN ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/Info.plist
  168. BIN ...mbeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/OutlineView.nib
  169. BIN ...dedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/SearchView2_pad.nib
  170. BIN ...dframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/SearchView2_phone.nib
  171. BIN ...dedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/TextDisplayView.nib
  172. BIN ...embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/WebBrowser.nib
  173. BIN FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/X.png
  174. BIN ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/X@2x.png
  175. BIN ...mbeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/blackslider.png
  176. BIN ...beddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/bookmark_add.png
  177. BIN ...dedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/bookmark_add@2x.png
  178. BIN ...edframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeDouble.png
  179. BIN ...ramework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeDouble@2x.png
  180. BIN ...framework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeOverflow.png
  181. BIN ...mework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeOverflow@2x.png
  182. BIN ...edframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeSingle.png
  183. BIN ...ramework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeSingle@2x.png
  184. BIN ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/close.png
  185. BIN ...beddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/close_player.png
  186. BIN ...eddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_l2r.png
  187. BIN ...edframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_l2r@2x.png
  188. BIN ...eddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_r2l.png
  189. BIN ...edframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_r2l@2x.png
  190. BIN ...ork/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/img_outline_triangledown.png
  191. BIN ...rk/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/img_outline_triangleright.png
  192. BIN ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/indice.png
  193. BIN ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/indice@2x.png
  194. BIN ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/next.png
  195. BIN ...t.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pagelead.png
  196. BIN ...mbeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pagelead@2x.png
  197. BIN ...beddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pause_player.png
  198. BIN ...mbeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/play_player.png
  199. BIN ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/prew.png
  200. BIN ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/reload.png
  201. BIN ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/search.png
  202. BIN ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/search@2x.png
  203. BIN ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/stop.png
  204. BIN ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/text.png
  205. BIN ...it.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/text@2x.png
  206. BIN ...t.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomLock.png
  207. BIN ...mbeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomLock@2x.png
  208. BIN ...embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomUnlock.png
  209. BIN ...eddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomUnlock@2x.png
  210. BIN FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/Info.plist
  211. +61 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/Snippets.txt
  212. +1 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/Current
  213. +1 −0 FastPdfKit.embeddedframework/Resources/FPKReaderBundle.bundle
  214. +1 −0 FastPdfKit.embeddedframework/Resources/Snippets.txt
  215. +11 −7 FastPdfKit.xcodeproj/project.pbxproj
  216. BIN KioskApp/Bundle/FPKKioskBundle.bundle/Info.plist
  217. BIN KioskApp/Bundle/FPKKioskBundle.bundle/Kiosk_ipad.nib
  218. BIN KioskApp/Bundle/FPKKioskBundle.bundle/Kiosk_phone.nib
  219. BIN KioskApp/Bundle/FPKKioskBundle.bundle/backThumb.png
  220. BIN KioskApp/Bundle/FPKKioskBundle.bundle/backThumb_iphone.png
  221. BIN KioskApp/Bundle/FPKKioskBundle.bundle/backThumb_iphone@2x.png
  222. BIN KioskApp/Bundle/FPKKioskBundle.bundle/border.png
  223. BIN KioskApp/Bundle/FPKKioskBundle.bundle/download.png
  224. BIN KioskApp/Bundle/FPKKioskBundle.bundle/header.png
  225. BIN KioskApp/Bundle/FPKKioskBundle.bundle/header_iphone.png
  226. BIN KioskApp/Bundle/FPKKioskBundle.bundle/header_iphone@2x.png
  227. +60 −0 KioskApp/Bundle/FPKKioskBundle.bundle/kiosk_list.xml
  228. BIN KioskApp/Bundle/FPKKioskBundle.bundle/pause.png
  229. BIN KioskApp/Bundle/FPKKioskBundle.bundle/pause@2x.png
  230. BIN KioskApp/Bundle/FPKKioskBundle.bundle/remove.png
  231. BIN KioskApp/Bundle/FPKKioskBundle.bundle/resume.png
  232. BIN KioskApp/Bundle/FPKKioskBundle.bundle/view.png
  233. +1 −1 KioskApp/KioskApp.xcodeproj/project.pbxproj
  234. BIN ...KioskApp.xcodeproj/project.xcworkspace/xcuserdata/nick.xcuserdatad/UserInterfaceState.xcuserstate
  235. +6 −0 README.md
View
BIN Bundle/AudioViewController.nib
Binary file not shown.
View
BIN Bundle/BookmarkView.nib
Binary file not shown.
View
BIN Bundle/FPKKioskBundle.bundle/Info.plist
Binary file not shown.
View
BIN Bundle/FPKKioskBundle.bundle/Kiosk_ipad.nib
Binary file not shown.
View
BIN Bundle/FPKKioskBundle.bundle/Kiosk_phone.nib
Binary file not shown.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/border.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/download.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/download@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header_iphone.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header_iphone@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
60 Bundle/FPKKioskBundle.bundle/kiosk_list.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<response>
+ <list>
+ <pdf>
+ <title>Multimedia</title>
+ <link>http://reader.fastpdfkit.com/Multimedia.pdf</link>
+ <cover>http://reader.fastpdfkit.com/Multimedia.jpg</cover>
+ </pdf>
+ <pdf>
+ <title>Readme</title>
+ <link>http://reader.fastpdfkit.com/readme.pdf</link>
+ <cover>http://reader.fastpdfkit.com/readme.jpg</cover>
+ </pdf>
+ <pdf>
+ <title>Sources</title>
+ <link>http://reader.fastpdfkit.com/sources.pdf</link>
+ <cover>http://reader.fastpdfkit.com/sources.jpg</cover>
+ </pdf>
+ <pdf>
+ <title>License</title>
+ <link>http://fastpdfkit.com/license.pdf</link>
+ <cover>http://reader.fastpdfkit.com/license.jpg</cover>
+ </pdf>
+ <pdf>
+ <title>Documentation</title>
+ <link>http://doc.fastpdfkit.com/manual.pdf</link>
+ <cover>http://reader.fastpdfkit.com/doc.jpg</cover>
+ </pdf>
+ <pdf>
+ <title>Documentation</title>
+ <link>http://reader.fastpdfkit.com/kb.pdf</link>
+ <cover>http://reader.fastpdfkit.com/kb.jpg</cover>
+ </pdf>
+ <pdf>
+ <title>Aperture</title>
+ <link>http://go.mobfarm.eu/pdf/Aperture.pdf</link>
+ <cover>http://go.mobfarm.eu/pdf/Aperture.png</cover>
+ </pdf>
+ <pdf>
+ <title>MacBook Air</title>
+ <link>http://go.mobfarm.eu/pdf/MacBookAir.pdf</link>
+ <cover>http://go.mobfarm.eu/pdf/MacBookAir.png</cover>
+ </pdf>
+ <pdf>
+ <title>iMac</title>
+ <link>http://go.mobfarm.eu/pdf/iMac.pdf</link>
+ <cover>http://go.mobfarm.eu/pdf/iMac.png</cover>
+ </pdf>
+ <pdf>
+ <title>iPad</title>
+ <link>http://go.mobfarm.eu/pdf/iPad.pdf</link>
+ <cover>http://go.mobfarm.eu/pdf/iPad.png</cover>
+ </pdf>
+ <pdf>
+ <title>iPhone</title>
+ <link>http://go.mobfarm.eu/pdf/iPhone.pdf</link>
+ <cover>http://go.mobfarm.eu/pdf/iPhone.png</cover>
+ </pdf>
+ </list>
+</response>
View
BIN Bundle/FPKKioskBundle.bundle/pause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/pause@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/remove.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/remove@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/resume.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/resume@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/view.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/view@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/AudioViewController.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/BookmarkView.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/Info.plist
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/OutlineView.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/SearchView2_pad.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/SearchView2_phone.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/TextDisplayView.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/WebBrowser.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/X.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/X@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/blackslider.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/bookmark_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/bookmark_add@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeDouble.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeDouble@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeSingle.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeSingle@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/close.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/close_player.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_l2r.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_l2r@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_r2l.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_r2l@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/img_outline_triangledown.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/img_outline_triangleright.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/indice.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/indice@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/next.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/pagelead.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/pagelead@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/pause_player.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/play_player.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/prew.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/reload.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/search.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/search@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/stop.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/text.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/text@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomLock.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomLock@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomUnlock.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomUnlock@2x.png
Diff not rendered.
View
BIN Bundle/Info.plist
Binary file not shown.
View
BIN Bundle/OutlineView.nib
Binary file not shown.
View
BIN Bundle/SearchView2_pad.nib
Binary file not shown.
View
BIN Bundle/SearchView2_phone.nib
Binary file not shown.
View
BIN Bundle/TextDisplayView.nib
Binary file not shown.
View
BIN Bundle/WebBrowser.nib
Binary file not shown.
View
BIN Bundle/X.png
Diff not rendered.
View
BIN Bundle/X@2x.png
Diff not rendered.
View
BIN Bundle/blackslider.png
Diff not rendered.
View
BIN Bundle/bookmark_add.png
Diff not rendered.
View
BIN Bundle/bookmark_add@2x.png
Diff not rendered.
View
BIN Bundle/changeModeDouble.png
Diff not rendered.
View
BIN Bundle/changeModeDouble@2x.png
Diff not rendered.
View
BIN Bundle/changeModeOverflow.png
Diff not rendered.
View
BIN Bundle/changeModeOverflow@2x.png
Diff not rendered.
View
BIN Bundle/changeModeSingle.png
Diff not rendered.
View
BIN Bundle/changeModeSingle@2x.png
Diff not rendered.
View
BIN Bundle/close.png
Diff not rendered.
View
BIN Bundle/close_player.png
Diff not rendered.
View
BIN Bundle/direction_l2r.png
Diff not rendered.
View
BIN Bundle/direction_l2r@2x.png
Diff not rendered.
View
BIN Bundle/direction_r2l.png
Diff not rendered.
View
BIN Bundle/direction_r2l@2x.png
Diff not rendered.
View
BIN Bundle/img_outline_triangledown.png
Diff not rendered.
View
BIN Bundle/img_outline_triangleright.png
Diff not rendered.
View
BIN Bundle/indice.png
Diff not rendered.
View
BIN Bundle/indice@2x.png
Diff not rendered.
View
BIN Bundle/next.png
Diff not rendered.
View
BIN Bundle/pagelead.png
Diff not rendered.
View
BIN Bundle/pagelead@2x.png
Diff not rendered.
View
BIN Bundle/pause_player.png
Diff not rendered.
View
BIN Bundle/play_player.png
Diff not rendered.
View
BIN Bundle/prew.png
Diff not rendered.
View
BIN Bundle/reload.png
Diff not rendered.
View
BIN Bundle/search.png
Diff not rendered.
View
BIN Bundle/search@2x.png
Diff not rendered.
View
BIN Bundle/stop.png
Diff not rendered.
View
BIN Bundle/text.png
Diff not rendered.
View
BIN Bundle/text@2x.png
Diff not rendered.
View
BIN Bundle/zoomLock.png
Diff not rendered.
View
BIN Bundle/zoomLock@2x.png
Diff not rendered.
View
BIN Bundle/zoomUnlock.png
Diff not rendered.
View
BIN Bundle/zoomUnlock@2x.png
Diff not rendered.
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/nick.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
26 FPKCore/FPKGlyphBox.h
@@ -12,6 +12,10 @@
@interface FPKGlyphBox : NSObject {
CGRect box;
+ CGPoint origin;
+ CGFloat ascent;
+ CGFloat descent;
+ CGFloat width;
BOOL synthesized;
unsigned int * unicodes;
@@ -28,7 +32,27 @@
@property (nonatomic,readwrite) CGRect box;
/**
- UTF-8 string representation of the text of this glyph box, usually is just a
+ Origin of the glyph box. That is the point in space were the glyph is laid down.
+ */
+@property (nonatomic, readwrite) CGPoint origin;
+
+/**
+ Height of the glyph box above the text baseline.
+ */
+@property (nonatomic, readwrite) CGFloat ascent;
+
+/**
+ Descent of the glyph box below the text baseline.
+ */
+@property (nonatomic, readwrite) CGFloat descent;
+
+/**
+ Width of the glyph box.
+ */
+@property (nonatomic, readwrite) CGFloat width;
+
+/**
+ UTF-8 string representation of the text of this glyph box, usually is just a
single unicode codepoint. It is synthesized from an opaque representation.
*/
-(NSString *)text;
View
14 FPKCore/FPKOverlayViewDataSource.h
@@ -30,8 +30,22 @@
action that needs to be synchronized with the lifecycle of the view.
*/
-(void)documentViewController:(MFDocumentViewController *)dvc willAddOverlayView:(UIView *)view;
+
+/**
+ This method is called when the Overlay Views have been added
+ */
-(void)documentViewController:(MFDocumentViewController *)dvc didAddOverlayView:(UIView *)view;
+
+/**
+ This method is called when the Overlay View are going to be removed
+
+ */
-(void)documentViewController:(MFDocumentViewController *)dvc willRemoveOverlayView:(UIView *)view;
+
+/**
+ This method is called when the Overlay View have been removed
+
+ */
-(void)documentViewController:(MFDocumentViewController *)dvc didRemoveOverlayView:(UIView *)view;
@end
View
8 FPKCore/MFDocumentManager.h
@@ -17,8 +17,6 @@
MFOffscreenRenderer *renderer;
- CGPDFDocumentRef document;
- NSLock * lock;
NSURL * url;
CGDataProviderRef provider;
@@ -48,6 +46,9 @@
-(CGImageRef)createImageFromPDFPagesLeft:(NSInteger)leftPage andRight:(NSInteger)rightPage size:(CGSize)size andScale:(CGFloat)scale useLegacy:(BOOL)legacy showShadow:(BOOL)shadow andPadding:(CGFloat)padding;
-(CGImageRef)createImageFromPDFPage:(NSInteger)page size:(CGSize)size andScale:(CGFloat)scale useLegacy:(BOOL)legacy showShadow:(BOOL)shadow andPadding:(CGFloat)padding;
+-(CGImageRef)createImageWithPage:(NSUInteger)page pixelScale:(float)scale imageScale:(NSUInteger)scaling screenDimension:(CGFloat)dimension;
+
+-(CGImageRef)createImageWithImage:(CGImageRef)imageToBeDrawn;
-(void)drawPageNumber:(NSInteger)pageNumber onContext:(CGContextRef)ctx;
@@ -131,6 +132,9 @@
Compatibility methods for older version. It will call the above method with default values.
*/
-(NSArray *)searchResultOnPage:(NSUInteger)pageNr forSearchTerms:(NSString *)searchTerm;
+/**
+ Compatibility methods for older version. It will call the above method with default values.
+ */
-(NSArray *)searchResultOnPage:(NSUInteger)pageNr forSearchTerms:(NSString *)searchTerm ignoreCase:(BOOL)ignoreOrNot;
/**
View
27 FPKCore/MFDocumentViewController.h
@@ -15,6 +15,13 @@
@class MFDocumentManager;
@class MFDocumentViewController;
+@protocol FPKThumbnailView
+
+@property (nonatomic, copy) NSString * title;
+@property (nonatomic, strong) UIImage * image;
+
+@end
+
@interface MFDocumentViewController : UIViewController <UIScrollViewDelegate> {
NSString * documentId;
@@ -473,4 +480,24 @@
*/
@property (readonly) UIScrollView * pagedScrollView;
+/**
+ Height of the thumbnail in the scrollview. Height is 120 on iPad and 60 on iphone.
+ */
+@property (nonatomic, readwrite) CGFloat thumbnailHeight;
+
+/**
+ Background color of the thumbnail view.
+ */
+@property (nonatomic, retain) UIColor * thumbnailBackgroundColor;
+
+/**
+ Enabled or disable the page slider at the bottom.
+ */
+@property (nonatomic, readwrite, getter = isPageSliderEnabled) BOOL pageSliderEnabled;
+
+/**
+ Enable or disable the thumbnail slider at the bottom.
+ */
+@property (nonatomic, readwrite, getter = isThumbnailSliderEnabled) BOOL thumbnailSliderEnabled;
+
@end
View
6 FPKCore/MFPDFOutlineEntry.h
@@ -20,7 +20,6 @@
// Structure
NSArray * bookmarks;
-
}
/**
@@ -43,4 +42,9 @@
*/
@property (copy) NSString * title;
+/**
+ Default constructor.
+ */
+-(id)initWithTitle:(NSString *)aTitle;
+
@end
View
12 FPKCore/Stuff.h
@@ -156,9 +156,17 @@ static inline NSInteger pageNumberForPosition(NSInteger position) {
}
static inline CGSize sizeForContent(NSInteger numberOfPages, CGSize pageSize) {
- CGFloat contentHeight = pageSize.height;
+
+ CGSize size;
+
+ CGFloat contentHeight = pageSize.height;
CGFloat contentWidth = numberOfPages * pageSize.width;
- return CGSizeMake(contentWidth, contentHeight);
+
+ size = CGSizeMake(contentWidth, contentHeight);
+
+ //NSLog(@"%d %@ -> %@", numberOfPages, NSStringFromCGSize(pageSize), NSStringFromCGSize(size));
+
+ return size;
}
static inline NSUInteger numberOfPositions(NSUInteger numberOfPages, MFDocumentMode pagesForPositions, MFDocumentLead lead) {
View
BIN FPKCore/libFastPdfKit.a
Binary file not shown.
View
1 FastPdfKit.embeddedframework/FastPdfKit.framework/FastPdfKit
View
1 FastPdfKit.embeddedframework/FastPdfKit.framework/Headers
View
1 FastPdfKit.embeddedframework/FastPdfKit.framework/Resources
View
BIN FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/FastPdfKit
Binary file not shown.
View
35 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/AudioViewController.h
@@ -0,0 +1,35 @@
+//
+// AudioViewController.h
+// FastPdfKit Sample
+//
+// Created by Mac Book Pro on 14/04/11.
+// Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <AVFoundation/AVFoundation.h>
+#import "ReaderViewController.h"
+
+
+@interface AudioViewController : UIViewController <AVAudioPlayerDelegate>{
+
+ AVAudioPlayer *audioPlayer;
+ UISlider *volumeControl;
+ BOOL local;
+ NSURL *url;
+ ReaderViewController *documentViewController;
+}
+
+@property (nonatomic, retain) IBOutlet UISlider *volumeControl;
+@property (nonatomic, assign) AVAudioPlayer *audioPlayer;
+@property (nonatomic, readwrite, getter = isLocal) BOOL local;
+@property (nonatomic, retain) NSURL *url;
+@property (nonatomic,assign) ReaderViewController *documentViewController;
+
+- (IBAction) playAudio;
+- (IBAction) stopAudio;
+- (IBAction) closeController;
+- (IBAction) adjustVolume;
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil audioFilePath:(NSString *)anAudioFilePath local:(BOOL)isLocal;
+
+@end
View
46 ...PdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/BookmarkViewController.h
@@ -0,0 +1,46 @@
+//
+// BookmarkViewController.h
+// FastPDFKitTest
+//
+// Created by Nicolò Tosi on 8/27/10.
+// Copyright 2010 MobFarm S.r.l. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "BookmarkViewControllerDelegate.h"
+
+#define STATUS_NORMAL 0
+#define STATUS_EDITING 1
+
+@class DocumentViewController;
+
+@interface BookmarkViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
+
+ IBOutlet UIBarButtonItem * editButton;
+ IBOutlet UITableView * bookmarksTableView;
+
+ NSUInteger status;
+ NSMutableArray * bookmarks;
+
+ IBOutlet UIToolbar * toolbar;
+
+ //
+// Delegate to get the current page and tell to show a certain page. It can also be used to
+// get a list of bookmarks for the current document.
+ NSObject<BookmarkViewControllerDelegate> *delegate;
+
+}
+
+-(IBAction)actionToggleMode:(id)sender;
+-(IBAction)actionAddBookmark:(id)sender;
+-(IBAction)actionDone:(id)sender;
+
+@property (nonatomic, retain) IBOutlet UIBarButtonItem *editButton;
+@property (nonatomic, retain) IBOutlet UITableView *bookmarksTableView;
+
+@property (nonatomic, retain) NSMutableArray *bookmarks;
+@property (nonatomic, assign) NSObject<BookmarkViewControllerDelegate> *delegate;
+
+@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;
+
+@end
View
23 ...mbeddedframework/FastPdfKit.framework/Versions/A/Headers/BookmarkViewControllerDelegate.h
@@ -0,0 +1,23 @@
+//
+// BookmarkViewControllerDelegate.h
+// FastPdfKit Sample
+//
+// Created by Gianluca Orsini on 28/02/11.
+// Copyright 2010 MobFarm S.r.l. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class BookmarkViewController;
+
+@protocol BookmarkViewControllerDelegate
+
+-(NSUInteger)page;
+
+-(void)dismissBookmarkViewController:(BookmarkViewController *)bvc;
+
+-(void)bookmarkViewController:(BookmarkViewController *)bvc didRequestPage:(NSUInteger)page;
+
+-(NSString *)documentId;
+
+@end
View
24 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKAnnotation.h
@@ -0,0 +1,24 @@
+//
+// FPKAnnotation.h
+// FastPdfKitLibrary
+//
+// Created by Nicolò Tosi on 10/13/11.
+// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <CoreGraphics/CGGeometry.h>
+
+@interface FPKAnnotation : NSObject {
+
+ CGRect rect;
+
+}
+
+/**
+ Rect of the annotation in page coordinates (origin at the bottom left).
+ */
+@property (nonatomic,readwrite) CGRect rect;
+
+@end
+
View
42 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKGlyphBox.h
@@ -0,0 +1,42 @@
+//
+// MFGlyphBox.h
+// FastPdfKitLibrary
+//
+// Created by Nicolò Tosi on 11/29/11.
+// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <QuartzCore/QuartzCore.h>
+
+@interface FPKGlyphBox : NSObject {
+
+ CGRect box;
+
+ BOOL synthesized;
+ unsigned int * unicodes;
+ int unicodes_len;
+}
+
+-(id)initWithBox:(CGRect)box unicodes:(unsigned int *)unicodes length:(int)len;
+
+@property (nonatomic,readwrite) BOOL synthesized;
+
+/**
+ Bounding box of the glyph in page space.
+ */
+@property (nonatomic,readwrite) CGRect box;
+
+/**
+ UTF-8 string representation of the text of this glyph box, usually is just a
+ single unicode codepoint. It is synthesized from an opaque representation.
+ */
+-(NSString *)text;
+
+/**
+ Class method to convert an array of MFGlyphBox into an human-readable string. It
+ does not call a concatenation of -text message, so it is faster.
+ */
++(NSString *)textFromBoxArray:(NSArray *)array;
+
+@end
View
37 ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKOverlayViewDataSource.h
@@ -0,0 +1,37 @@
+//
+// FPKOverlayViewDataSource.h
+// FastPDFKitTest
+//
+// Created by Nicolò Tosi on 6/3/11.
+// Copyright 2011 com.mobfarm. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@class MFDocumentViewController;
+@protocol FPKOverlayViewDataSource <NSObject>
+
+@optional
+
+/**
+ This method shall return a set of view to display over the pdf page.
+ */
+-(NSArray *)documentViewController:(MFDocumentViewController *)dvc overlayViewsForPage:(NSUInteger)page;
+
+/**
+ This method needs to return the frame in page-coordinates for the view passed as arguments. Remember that, like drawables
+ and touchables, the coordinate system's origin is in the bottom left corner of the page.
+ */
+-(CGRect)documentViewController:(MFDocumentViewController *)dvc rectForOverlayView:(UIView *)view onPage:(NSUInteger)page;
+
+/**
+ These callbacks will be invoked when the overlay view is going to be added, after is added, when is going to be removed
+ and when it is actually removed from the page view. Use these to change the status of the view and or start/stop any
+ action that needs to be synchronized with the lifecycle of the view.
+ */
+-(void)documentViewController:(MFDocumentViewController *)dvc willAddOverlayView:(UIView *)view;
+-(void)documentViewController:(MFDocumentViewController *)dvc didAddOverlayView:(UIView *)view;
+-(void)documentViewController:(MFDocumentViewController *)dvc willRemoveOverlayView:(UIView *)view;
+-(void)documentViewController:(MFDocumentViewController *)dvc didRemoveOverlayView:(UIView *)view;
+
+@end
View
20 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FPKURIAnnotation.h
@@ -0,0 +1,20 @@
+//
+// FPKURIAnnotation.h
+// FastPdfKitLibrary
+//
+// Created by Nicolò Tosi on 10/13/11.
+// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "FPKAnnotation.h"
+
+@interface FPKURIAnnotation : FPKAnnotation {
+ NSString * uri;
+}
+
+/**
+ URI associated to the annotation.
+ */
+@property (nonatomic,copy) NSString * uri;
+@end
View
33 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/FastPdfKit.h
@@ -0,0 +1,33 @@
+#import "AudioViewController.h"
+#import "BookmarkViewController.h"
+#import "BookmarkViewControllerDelegate.h"
+#import "FPKOverlayViewDataSource.h"
+#import "MFAudioPlayerViewImpl.h"
+#import "MFAudioPlayerViewProtocol.h"
+#import "MFAudioProvider.h"
+#import "MFDocumentManager.h"
+#import "MFDocumentOverlayDataSource.h"
+#import "MFDocumentViewController.h"
+#import "MFDocumentViewControllerDelegate.h"
+#import "MFOverlayDrawable.h"
+#import "MFOverlayTouchable.h"
+#import "MFPDFOutlineEntry.h"
+#import "mfprofile.h"
+#import "MFTextItem.h"
+#import "MiniSearchView.h"
+#import "MiniSearchViewControllerDelegate.h"
+#import "NotificationFactory.h"
+#import "OutlineViewController.h"
+#import "OutlineViewControllerDelegate.h"
+#import "ReaderViewController.h"
+#import "SearchManager.h"
+#import "SearchResultCellView.h"
+#import "SearchResultDataSource.h"
+#import "SearchResultView.h"
+#import "SearchViewController.h"
+#import "SearchViewControllerDelegate.h"
+#import "Stuff.h"
+#import "TextDisplayViewController.h"
+#import "TextDisplayViewControllerDelegate.h"
+#import "TextSearchOperation.h"
+#import "WebBrowser.h"
View
6 ....embeddedframework/FastPdfKit.framework/Versions/A/Headers/FastPdfKitFramework-Prefix.pch
@@ -0,0 +1,6 @@
+//
+// Prefix header for all source files of the 'FastPdfKit' target in the 'FastPdfKit' project
+//
+
+#ifdef __OBJC__
+#endif
View
27 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFAudioPlayerViewImpl.h
@@ -0,0 +1,27 @@
+//
+// MFAudioPlayerViewImpl.h
+// FastPdfKit Sample
+//
+// Created by Mac Book Pro on 19/04/11.
+// Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "MFAudioPlayerViewProtocol.h"
+#import "MFAudioProvider.h"
+
+
+@interface MFAudioPlayerViewImpl : UIView <MFAudioPlayerViewProtocol> {
+
+ UIButton *startStopButton;
+ UISlider *volumeSlider;
+
+ id<MFAudioProvider> audioProvider;
+
+}
+
+@property (nonatomic,retain) UIButton *startStopButton;
+@property (nonatomic,retain) UISlider *volumeSlider;
+@property (nonatomic,assign) id<MFAudioProvider> audioProvider;
+
+@end
View
33 ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFAudioPlayerViewProtocol.h
@@ -0,0 +1,33 @@
+//
+// MFAudioPlayerViewProtocol.h
+// FastPDFKitTest
+//
+// Created by Nicolò Tosi on 4/18/11.
+// Copyright 2011 com.mobfarm. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "MFAudioProvider.h"
+
+@protocol MFAudioPlayerViewProtocol <NSObject>
+
+/**
+ This method will be called to provide a view instance to add to the overlay.
+ */
++(UIView *)audioPlayerViewInstance;
+
+/**
+ This method will be called to give a chance to store the refernce to the provider
+ that will notify the view about the playback. It is recommended to assign it, not retain to
+ avoid circular retention between provider and review.
+ */
+-(void)setAudioProvider:(id<MFAudioProvider>)provider;
+
+/**
+ Playback and status event methods.
+ */
+-(void)audioProviderDidStart:(id<MFAudioProvider>)mfeap;
+-(void)audioProviderDidStop:(id<MFAudioProvider>)mfeap;
+-(void)audioProvider:(id<MFAudioProvider>)mfap volumeAdjustedTo:(float)volume;
+
+@end
View
34 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFAudioProvider.h
@@ -0,0 +1,34 @@
+//
+// MFAudioProvider.h
+// FastPDFKitTest
+//
+// Created by Nicolò Tosi on 4/18/11.
+// Copyright 2011 com.mobfarm. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+//#import "MFAudioPlayerViewProtocol.h"
+
+@protocol MFAudioProvider <NSObject>
+
+/**
+ Play when stopped and viceversa.
+ */
+-(void)togglePlay;
+
+/**
+ Tell if the audio clip is playing.
+ */
+-(BOOL)isPlaying;
+
+/**
+ Set the volume level, from 0.0 to 1.0.
+ */
+-(void)setVolumeLevel:(float)volume;
+
+/**
+ Return the volume level.
+ */
+-(float)volumeLevel;
+
+@end
View
183 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentManager.h
@@ -0,0 +1,183 @@
+//
+// MFDocumentManager.h
+// OffscreenRendererTest
+//
+// Created by Nicolò Tosi on 4/20/10.
+// Copyright 2010 MobFarm S.r.l. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <QuartzCore/QuartzCore.h>
+#import <UIKit/UIKit.h>
+#import "Stuff.h"
+
+@class MFOffscreenRenderer;
+
+@interface MFDocumentManager : NSObject <UIAlertViewDelegate>{
+
+ MFOffscreenRenderer *renderer;
+
+ CGPDFDocumentRef document;
+ NSLock * lock;
+ NSURL * url;
+ CGDataProviderRef provider;
+
+ NSString * resourceFolder; /* If nil, will default to Documents folder */
+
+ NSUInteger numberOfPages;
+
+ NSString * password;
+
+ NSLock * pageDataLock;
+
+ int *dataSetFlags;
+ CGRect *cropboxes;
+ int *rotations;
+
+ NSMutableDictionary * fontCache;
+
+ BOOL fontCacheEnabled;
+
+ BOOL alternateURISchemesEnabled;
+}
+
+// These method are used internally.
+-(CGImageRef)createImageFromPDFPagesLeft:(NSInteger)leftPage andRight:(NSInteger)rightPage size:(CGSize)size andScale:(CGFloat)scale useLegacy:(BOOL)legacy;
+-(CGImageRef)createImageFromPDFPage:(NSInteger)page size:(CGSize)size andScale:(CGFloat)scale useLegacy:(BOOL)legacy;
+
+-(CGImageRef)createImageFromPDFPagesLeft:(NSInteger)leftPage andRight:(NSInteger)rightPage size:(CGSize)size andScale:(CGFloat)scale useLegacy:(BOOL)legacy showShadow:(BOOL)shadow andPadding:(CGFloat)padding;
+-(CGImageRef)createImageFromPDFPage:(NSInteger)page size:(CGSize)size andScale:(CGFloat)scale useLegacy:(BOOL)legacy showShadow:(BOOL)shadow andPadding:(CGFloat)padding;
+
+
+-(void)drawPageNumber:(NSInteger)pageNumber onContext:(CGContextRef)ctx;
+
+/**
+ Use this method to get the cropbox and the rotation of a certain pdf page.
+ */
+-(void)getCropbox:(CGRect *)cropbox andRotation:(int *)rotation forPageNumber:(NSInteger)pageNumber withBuffer:(BOOL)withOrWithout;
+
+/**
+ Create a thumbnail for a specific page. It will look far better than the
+ thumbnail integrated inside the pdf, but it is also slower.
+ */
+-(CGImageRef)createImageForThumbnailOfPageNumber:(NSUInteger)pageNr ofSize:(CGSize)size andScale:(CGFloat)scale;
+
+/**
+ Factory method to create an MFDocumentManager instance from a know file path.
+ */
++(MFDocumentManager *)documentManagerWithFilePath:(NSString *)filePath;
+
+/**
+ Return an array of MFOutlineEntry as the outline/TOC of the pdf document.
+ */
+-(NSMutableArray *)outline;
+
+/**
+ Initializer. You can also use the factory method above.
+ */
+-(id)initWithFileUrl:(NSURL*)anUrl;
+
+/**
+ Initializer with data provider.
+ */
+-(id)initWithDataProvider:(CGDataProviderRef)dataProvider;
+
+/**
+ Check if a document is encrypted and blocked by a password or not.
+ */
+-(BOOL)isLocked;
+
+/**
+ Try to unlock the document with a password and return if the unlock has been
+ successful or not.
+*/
+-(BOOL)tryUnlockWithPassword:(NSString *)aPassword;
+
+/**
+ Return the number of pages that make up the document.
+ */
+-(NSUInteger)numberOfPages;
+
+/**
+ This method will return the page number of the destination with the name passed
+ as argument.
+ */
+-(NSUInteger)pageNumberForDestinationNamed:(NSString *)name;
+
+/**
+ Clear the page cache. It is important to call this method on memory warning as
+ in the sample code to prevent the application being killed right for excessive
+ memory usage.
+ */
+-(void)emptyCache;
+
+/**
+ Return an array of MFTextItem representing the matches of teh search term on
+ the page passed as arguments. It is a good choice running this method in a
+ secondary thread.
+ FPKSearchMode has the following values:
+ FPKSearchModeHard - if you search for 'bèzier' it will match 'bèzier' only but not
+ 'bezier'. If you search for 'bezier' it will match 'bezier' only.
+ FPKSearchModeSoft - if you search for term 'bèzier' it will match both 'bezier' and 'bèzier'. Same
+ if you search for 'bezier'.
+ FPKSearchModeSmart - if you search for term 'bezier', it will also match 'bèzier', but if you
+ search for 'bèzier' it will match 'bèzier' only.
+ Ignore case is self explanatory.
+ Default parameters are FPKSearchModeSmart and ignoreCase to YES.
+ */
+-(NSArray *)searchResultOnPage:(NSUInteger)pageNr forSearchTerms:(NSString *)searchTerm mode:(FPKSearchMode)mode ignoreCase:(BOOL)ignoreOrNot;
+
+/**
+ Compatibility methods for older version. It will call the above method with default values.
+ */
+-(NSArray *)searchResultOnPage:(NSUInteger)pageNr forSearchTerms:(NSString *)searchTerm;
+-(NSArray *)searchResultOnPage:(NSUInteger)pageNr forSearchTerms:(NSString *)searchTerm ignoreCase:(BOOL)ignoreOrNot;
+
+/**
+ Return a string representation of the text contained in a pdf page.
+ */
+-(NSString *)wholeTextForPage:(NSUInteger)pageNr;
+
+/**
+ Build version of this library. Useful for debugging purposes.
+ */
++(NSString *)version;
+
+/**
+ Array of every uri annotation for a selected page.
+ */
+-(NSArray *)uriAnnotationsForPageNumber:(NSUInteger)pageNr;
+
+/**
+ Get the parameters for a generic uri, useful to parse options passed with the
+ annotations to customize the behaviour.
+ */
++(NSDictionary *)paramsFromURI:(NSString *)uri;
+
+/**
+ Resouce folder for the document. Video, audio and other files referenced in the
+ pdf are contained here.
+ */
+@property (nonatomic,retain) NSString * resourceFolder;
+
+/**
+ Enable/disable the font cache. Tipically, you want the cache turned on. If you
+ get a lot of [] (notdef) characters in the text extracted or the search turn
+ up nothing, try to disabled set this to NO. Default value is YES.
+ */
+@property (nonatomic,assign) BOOL fontCacheEnabled;
+
+/**
+ Return an array of FPKGlyphBox, that is, the bounding box of each glyph on the
+ page and its unicode representation. Check FPKGlyphBox interface for details.
+ */
+-(NSArray *)glyphBoxesForPage:(NSUInteger)pageNr;
+
+/**
+ Enable alternate URI annotations schemes like video://, videoremote://, audio://,
+ audioremote://, etcetera.
+ Default value is YES.
+ */
+@property (nonatomic,assign) BOOL alternateURISchemesEnabled;
+
+@end
View
45 ...t.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentOverlayDataSource.h
@@ -0,0 +1,45 @@
+//
+// MFDocumentOverlayDataSource.h
+// FastPDFKitTest
+//
+// Created by Nicolò Tosi on 12/10/10.
+// Copyright 2010 com.mobfarm. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "MFOverlayTouchable.h"
+
+@class MFDocumentViewController;
+
+@protocol MFDocumentOverlayDataSource <NSObject>
+
+
+@optional
+
+/**
+ This method is invoked when a new detail page is going to be drawn and overlayEnabled of the MFDocumentViewController is set
+ to YES. The object setted as overlayDataSource is then required to return an array of MFOverlayDrawable object to be
+ drawn on the page as overlay.
+ */
+-(NSArray *)documentViewController:(MFDocumentViewController *)dvc drawablesForPage:(NSUInteger)page;
+
+/**
+ This method is invoked when a new detail page is going to be drawn and overlayEnables is set to YES. Objects added as overlay
+ data sources are required to submit touchables element to be tested against user input events.
+ */
+-(NSArray *)documentViewController:(MFDocumentViewController *)dvc touchablesForPage:(NSUInteger)page;
+
+/**
+ This method will be called when an user does tap on an overlay touchable element.
+ */
+-(void)documentViewController:(MFDocumentViewController *)dvc didReceiveTapOnTouchable:(id<MFOverlayTouchable>)touchable;
+
+
+-(NSArray *)documentViewController:(MFDocumentViewController *)dvc overlayViewsForPage:(NSUInteger)page;
+-(void)documentViewController:(MFDocumentViewController *)dvc willRemoveOverlayView:(UIView *)ov;
+-(void)documentViewController:(MFDocumentViewController *)dvc didRemoveOverlayView:(UIView *)ov;
+-(void)documentViewController:(MFDocumentViewController *)dvc willAddOverlayView:(UIView *)ov;
+-(void)documentViewController:(MFDocumentViewController *)dvc didAddOverlayView:(UIView *)ov;
+
+
+@end
View
476 ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentViewController.h
@@ -0,0 +1,476 @@
+//
+// MainViewController.h
+// OffscreenRendererTest
+//
+// Created by Nicolò Tosi on 4/16/10.
+// Copyright 2010 MobFarm S.r.l. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "MFDocumentViewControllerDelegate.h"
+#import "MFDocumentOverlayDataSource.h"
+#import "FPKOverlayViewDataSource.h"
+
+@class MFDeferredContentLayerWrapper;
+@class MFDocumentManager;
+@class MFDocumentViewController;
+
+@interface MFDocumentViewController : UIViewController <UIScrollViewDelegate> {
+
+ NSString * documentId;
+
+@private
+
+ // Mode change callback delegate
+ NSObject<MFDocumentViewControllerDelegate> *documentDelegate;
+ CFMutableArrayRef documentDelegates;
+
+ NSMutableSet * overlayDataSources;
+ NSMutableSet * overlayViewDataSources;
+
+ // Resources.
+ NSOperationQueue * operationQueue;
+
+ // Document.
+ MFDocumentManager * document;
+
+ // Detail view
+
+ // Previews
+ MFDeferredContentLayerWrapper * current; // Currently 'focused' layer wrapper.
+ MFDeferredContentLayerWrapper * focused;
+ int nextBias, prevBias, wrapperCount; // Wrappers info.
+ NSArray * wrappers; // Wrappers.
+
+ // Internal status
+ MFDocumentDirection currentDirection;
+ BOOL autoMode;
+ MFDocumentMode currentMode;
+ MFDocumentAutoMode currentAutoMode;
+
+ MFDocumentLead currentLead;
+ NSUInteger currentPage;
+ NSUInteger startingPage;
+ //MFLegacyMode legacyMode;
+
+ NSInteger currentPosition; // Currently displayed position.
+ NSUInteger currentOrientation; // Current orientation as intended by the application.
+ NSUInteger currentNumberOfPositions; // Current number of "screens".
+
+ NSInteger currentDetailPosition; // Current position of the detail view.
+
+ NSInteger maxNumberOfPages;
+
+ CGSize currentSize; // Current size as intended by the application.
+
+ BOOL pageControlUsed;
+ BOOL pageButtonUsed;
+ BOOL autoZoom;
+
+ BOOL firstLoad;
+ int loads;
+
+ float defaultMaxZoomScale;
+ CGFloat defaultPageFlipWidth;
+
+ BOOL pageFlipOnEdgeTouchEnabled;
+ BOOL zoomInOnDoubleTapEnabled;
+ BOOL documentInteractionEnabled;
+ BOOL overlayEnabled;
+
+ BOOL showShadow;
+ CGFloat padding;
+
+ BOOL useTiledOverlayView;
+
+ FPKSupportedOrientation supportedOrientation;
+}
+
+/**
+ This property let you add the main DocumentViewControllerDelegate.
+ */
+
+@property (assign) NSObject<MFDocumentViewControllerDelegate> *documentDelegate;
+
+/**
+ If you need to register objects as DocumentViewControllerDelegate you can add them using this method.
+ */
+
+-(void)addDocumentDelegate:(NSObject<MFDocumentViewControllerDelegate> *)delegate;
+
+/**
+ If you have more than one DocumentViewControllerDelegate you can remove any of them with this method.
+ */
+
+-(void)removeDocumentDelegate:(NSObject<MFDocumentViewControllerDelegate> *)delegate;
+
+/**
+ Value representing supported orientation by this view controller. You can set
+ multiple values by OR-ing them together.
+
+ For example:
+
+ supportedOrientation = FPKSupportedOrientationPortrait | FPKSupportedOrientationPortaitUpsideDown
+
+ */
+@property (nonatomic,readwrite) FPKSupportedOrientation supportedOrientation;
+
+@property (readonly) MFDocumentManager * document;
+
+/**
+ This property enable or disable the directional lock in the inner (document)
+ scroll view.
+ Default is NO.
+ */
+@property (nonatomic,readwrite,getter = isDirectionLockEnabled) BOOL directionalLockEnabled;
+
+/**
+ This property will enable an CATiledLayer version of the overlay view. This
+ means overlay drawables will be drawn sharp, no matter the zoom of the scroll
+ view.
+ */
+@property (readwrite) BOOL useTiledOverlayView;
+
+/**
+ Use this property to hide or show the horizontal scroller under the pages.
+ */
+@property (nonatomic,readwrite) BOOL showHorizontalScroller;
+
+/**
+ Set this flag to NO if you don't want the dropdown shadow under the pages.
+ Default is YES.
+ */
+@property (nonatomic,readwrite) BOOL showShadow;
+
+/**
+ Set the amount of minimum padding between the pages and the screen edge.
+ Default is 5.0. Values are clipped between 0 and 100.
+ */
+@property (nonatomic,readwrite) CGFloat padding;
+
+/**
+ Add and remove an Overlay Datasource for Drawables and Touchables.
+ */
+-(void)addOverlayDataSource:(id<MFDocumentOverlayDataSource>)ods;
+-(void)removeOverlayDataSource:(id<MFDocumentOverlayDataSource>)ods;
+
+/**
+ Enable or disable FPK Annotations parsing at page load. Set it to NO if you
+ don't use FPK Annotations and experience freezing while scrolling the pages.
+ Default is YES (enabled).
+ */
+@property (nonatomic,readwrite) BOOL fpkAnnotationsEnabled;
+
+/**
+ Add an Overlay View Datasource for overlay UIViews.
+*/
+-(void)addOverlayViewDataSource:(id<FPKOverlayViewDataSource>)ovds;
+
+/**
+ Remove an Overlay View Datasource for overlay UIViews.
+ */
+
+-(void)removeOverlayViewDataSource:(id<FPKOverlayViewDataSource>)ovds;
+
+/**
+ This method will provoke the redraw of the overlay. Overlay Datasources will be
+ asked to provide drawables.
+ */
+-(void)reloadOverlay;
+
+/**
+ This will return the appropriate zoom level to perfectly zoom onto an annotation.
+ If return 0, there's no available page data to compute the zoom yet.
+ */
+-(float)zoomLevelForAnnotationRect:(CGRect)rect ofPage:(NSUInteger)page;
+
+/**
+ Return the zoom scale of the page scroll view.
+ */
+-(float)zoomScale;
+
+/**
+ Return the offset of the page scroll view.
+ */
+-(CGPoint)zoomOffset;
+
+/**
+ This method will return the page number of the left page displayed. If the mode
+ is single page, the left page number is the current page.
+ */
+-(NSUInteger)leftPage;
+
+/**
+ This method will return the page number of the right page displayed. If the mode
+ is single, right page number is invalid.
+ */
+-(NSUInteger)rightPage;
+
+/**
+ Document identifier, to allow discriminate between different documents.
+ */
+@property (nonatomic, copy) NSString * documentId;
+
+/**
+ Set the starting page of the document. It is valid only after initialization
+ and before the view is displayed on the screen. Tipically you want to set this
+ just after the init of the viewController.
+ Default is 1.
+ */
+@property (nonatomic,readwrite) NSUInteger startingPage;
+
+/**
+ Enable the page flip when the user touch the edges of the screen.
+ */
+@property (assign,readwrite,getter=isPageFlipOnEdgeTouchEnabled) BOOL pageFlipOnEdgeTouchEnabled;
+
+/**
+ Set and get the percentage of the screen associated with the page flip on edge
+ touch action. Default value is 0.1, this mean that the 10% of the width of the
+ screen on either side will receive such events. Values are clipped between 0.0
+ and 0.5 to prevent overlap.
+ */
+-(void)setEdgeFlipWidth:(CGFloat)edgeFlipWidth;
+
+/**
+ Get the edge flip width
+ */
+
+-(CGFloat)edgeFlipWidth;
+
+/**
+ Default value to wich the current value will be reset to after each page change.
+ Default is 0.1.
+ */
+@property (nonatomic,readwrite) CGFloat defaultEdgeFlipWidth;
+
+
+/**
+ Enabled the zoom in when the user double tap on the screen.
+ */
+@property (assign,readwrite,getter=isZoomInOnDoubleTapEnabled) BOOL zoomInOnDoubleTapEnabled;
+
+/**
+ Enabled the document interaction.
+ */
+@property (assign,readwrite,getter=isDocumentInteractionEnabled) BOOL documentInteractionEnabled;
+
+/**
+ Enable or disable the display of overlay item over the document.
+ Default is disabled.
+ */
+@property (readwrite) BOOL overlayEnabled;
+
+/**
+ Enabled or force the legacy mode, or let the app choose to enable it or not
+ depending on the device. Default is disabled.
+ */
+// Private status variable about legacyMode...
+@property (readwrite) BOOL legacyModeEnabled;
+
+
+/**
+ This is the default maximum magnification the pdf will zoom.
+ */
+@property (nonatomic,readwrite) float defaultMaxZoomScale;
+
+/**
+ Call this method to start working with the pdf.
+ */
+
+-(id)initWithDocumentManager:(MFDocumentManager *)aDocumentManager;
+
+/**
+ This metod enable or disable the automatic mode switching upon rotation. If
+ enabled, the page mode will be automatically changed to single page in portrait
+ and side-by-side (double) on landscape. Setting the mode manually will disable
+ the automode.
+ */
+-(BOOL)automodeOnRotation;
+
+/**
+ Returns whether automode is enabled or not.
+ */
+-(void)setAutomodeOnRotation:(BOOL)automode;
+
+/**
+ Set how the pages are presented to the user. MFDocumentModeSingle present a
+ single page to the user, centered on the screen. MFDocumentModeDouble present
+ two pages side-by-side, as they would appear on a magazine or a books. This
+ will allow to preserve content split between the pages, for example a large
+ background image.
+ */
+-(void)setMode:(MFDocumentMode)newMode;
+
+
+/**
+ Set the mode to which the document will automatically switch to upon rotation.
+ Pass MFDocumentAutoModeX values and not MFDocumentModeX values, since it is not
+ guaranteed to be the same.
+ */
+-(void)setAutoMode:(MFDocumentAutoMode)newAutoMode;
+
+/**
+ Returns the current mode used to display the document.
+ */
+-(MFDocumentMode)mode;
+
+/**
+ This metod will set the current page of the document and jump to the specified
+ page. Current page is used to determine bookmarks position. On side-by-side
+ (double) mode, it is usually the left-most page of the two.
+ */
+-(void)setPage:(NSUInteger)page;
+
+/**
+ This metod will set the current page of the document and jump to the specified
+ page, while trying to zoom in on the specified rect. Pass 0.0 as zoomLevel to
+ let the application try to calculate the appropriate zoom level to fit the
+ rectangle on screen.
+ */
+-(void)setPage:(NSUInteger)page withZoomOfLevel:(float)zoomLevel onRect:(CGRect)rect;
+
+/**
+ Returns the current page of the document.
+ */
+-(NSUInteger)page;
+
+/**
+ This method set the lead used to show the pages in side-by-side (double) mode.
+ With MFDocumentLeadLeft, the cover will appear on the left side in side-by-side
+ mode, whereas with MFDocumentLeadRight will appear on the right side. Use this
+ method to keep pairing between pages for books and magazines. Single page mode
+ is not affected by this setting.
+ */
+-(void)setLead:(MFDocumentLead)newLead;
+
+/**
+ Returns the current lead used when presenting the document.
+ */
+-(MFDocumentLead)lead;
+
+/**
+ This method is used to set the page reading direction: left to right or right
+ to left.
+*/
+-(void)setDirection:(MFDocumentDirection)newDirection;
+
+/**
+ Return the current direction used by the document.
+ */
+-(MFDocumentDirection)direction;
+
+/**
+ This method will turn on or off the autozoom feature. If on, the current zoom
+ level will be kept between pages, otherwise will be rest to 100% on page
+ change.
+ */
+-(void)setAutozoomOnPageChange:(BOOL)autozoom;
+
+/**
+ Returns whether the autozoom feature is enabled or not.
+ */
+-(BOOL)autozoomOnPageChange;
+
+/**
+ This method will begin an animated transition to the next page, if available.
+ */
+-(void)moveToNextPage;
+
+/**
+ This method will begin an animated transition to the previous page, if
+ available.
+ */
+-(void)moveToPreviousPage;
+
+/**
+ Call this method rightly after dismissing this MFDocumentViewController
+ instance. It will release all the resources and stop the background threads.
+ Once this method has been called, the MFDocumentViewController instance cannot
+ be considered valid anymore and should be released.
+ */
+-(void)cleanUp;
+
+/**
+ Convert a point from MFDocumentViewController's view space to page space.
+ */
+-(CGPoint)convertPoint:(CGPoint)point fromViewtoPage:(NSUInteger)page;
+
+/**
+ Convert a point from page space to MFDocumentViewController's view space.
+ */
+-(CGPoint)convertPoint:(CGPoint)point toViewFromPage:(NSUInteger)page;
+
+/**
+ Convert a rect from MFDocumentViewController's view space to page space.
+ */
+-(CGRect)convertRect:(CGRect)rect fromViewToPage:(NSUInteger)page;
+
+/**
+ Convert a rect from page space to MFDocumentViewController's view space.
+ */
+-(CGRect)convertRect:(CGRect)rect toViewFromPage:(NSUInteger)page;
+
+/**
+ Convert a point from overlay space (the whole view that hold the both left and
+ right page, and that you can zoom in and scroll over) to page space.
+ */
+-(CGPoint)convertPoint:(CGPoint)point fromOverlayToPage:(NSUInteger)page;
+
+/**
+ Convert a point from page space to overlay space.
+ */
+-(CGPoint)convertPoint:(CGPoint)point toOverlayFromPage:(NSUInteger)page;
+
+/**
+ Convert a rect from overlay space to page space.
+ */
+-(CGRect)convertRect:(CGRect)rect fromOverlayToPage:(NSUInteger)page;
+
+/**
+ Convert a ract from page to overlay space.
+ */
+-(CGRect)convertRect:(CGRect)rect toOverlayFromPage:(NSUInteger)page;
+
+/**
+ Override in your subclass to toggle gesture recognizer on overlay views on and
+ off.
+ */
+-(BOOL)gesturesDisabled;
+
+/**
+ Set the paged scroll enabled or not. Useful to lock the user in the current
+ page during animations.
+ */
+-(void)setScrollEnabled:(BOOL)lock;
+
+/**
+ Set the maximum zoom scale for the pdf page.
+ */
+-(void)setMaximumZoomScale:(NSNumber *)scale;
+
+
+/**
+ Hide the bottom thumbnail scroll view.
+ */
+-(void)hideThumbnails;
+
+/**
+ Show the bottom thumbnail scroll view.
+ */
+-(void)showThumbnails;
+
+/**
+ Set the max number of preview images to use at any time. Call this before
+ presenting the MFDocumentViewController subclass. Default is 4, sweet spot is
+ 3-4 and you should not exceed this number unless your target device are iPhone4
+ iPad2 or newer devices and/or your PDF are scarce of images.
+ */
+@property (nonatomic,readwrite) NSUInteger previewsCount;