Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

02102012

- Fixed a crash while reading certain documents annotations
- Finally fixed layer shadow (again)
- Fixed bad overflow mode page position with some documents
- Slightly changed starting page behavior, now the slider should update properly
- Added a visited page system similar to web browser one, check the MFDocumentViewController.
- You can now set the thumbnail and image cache folders
  • Loading branch information...
commit f75883963b8b1a8ee06b1aab761153f5917d4fdc 1 parent 382e79c
@nick-mobfarm nick-mobfarm authored
Showing with 503 additions and 49 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/Kiosk_phone5.nib
  7. BIN  Bundle/FPKKioskBundle.bundle/backThumb.png
  8. BIN  Bundle/FPKKioskBundle.bundle/backThumb@2x.png
  9. BIN  Bundle/FPKKioskBundle.bundle/backThumb_iphone.png
  10. BIN  Bundle/FPKKioskBundle.bundle/backThumb_iphone@2x.png
  11. BIN  Bundle/FPKKioskBundle.bundle/border.png
  12. BIN  Bundle/FPKKioskBundle.bundle/download.png
  13. BIN  Bundle/FPKKioskBundle.bundle/download@2x.png
  14. BIN  Bundle/FPKKioskBundle.bundle/header.png
  15. BIN  Bundle/FPKKioskBundle.bundle/header@2x.png
  16. BIN  Bundle/FPKKioskBundle.bundle/header_iphone.png
  17. BIN  Bundle/FPKKioskBundle.bundle/header_iphone@2x.png
  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/title.png
  25. BIN  Bundle/FPKKioskBundle.bundle/version.png
  26. BIN  Bundle/FPKKioskBundle.bundle/view.png
  27. BIN  Bundle/FPKKioskBundle.bundle/view@2x.png
  28. BIN  Bundle/FPKReaderBundle.bundle/AudioViewController.nib
  29. BIN  Bundle/FPKReaderBundle.bundle/BookmarkView.nib
  30. BIN  Bundle/FPKReaderBundle.bundle/Info.plist
  31. BIN  Bundle/FPKReaderBundle.bundle/OutlineView.nib
  32. BIN  Bundle/FPKReaderBundle.bundle/SearchView2_pad.nib
  33. BIN  Bundle/FPKReaderBundle.bundle/SearchView2_phone.nib
  34. BIN  Bundle/FPKReaderBundle.bundle/TextDisplayView.nib
  35. BIN  Bundle/FPKReaderBundle.bundle/WebBrowser.nib
  36. BIN  Bundle/Info.plist
  37. BIN  Bundle/OutlineView.nib
  38. BIN  Bundle/SearchView2_pad.nib
  39. BIN  Bundle/SearchView2_phone.nib
  40. BIN  Bundle/TextDisplayView.nib
  41. BIN  Bundle/WebBrowser.nib
  42. BIN  Bundle/X.png
  43. BIN  Bundle/X@2x.png
  44. BIN  Bundle/blackslider.png
  45. BIN  Bundle/bookmark_add.png
  46. BIN  Bundle/bookmark_add@2x.png
  47. BIN  Bundle/changeModeDouble.png
  48. BIN  Bundle/changeModeDouble@2x.png
  49. BIN  Bundle/changeModeOverflow.png
  50. BIN  Bundle/changeModeOverflow@2x.png
  51. BIN  Bundle/changeModeSingle.png
  52. BIN  Bundle/changeModeSingle@2x.png
  53. BIN  Bundle/close.png
  54. BIN  Bundle/close_player.png
  55. BIN  Bundle/direction_l2r.png
  56. BIN  Bundle/direction_l2r@2x.png
  57. BIN  Bundle/direction_r2l.png
  58. BIN  Bundle/direction_r2l@2x.png
  59. BIN  Bundle/img_outline_triangledown.png
  60. BIN  Bundle/img_outline_triangleright.png
  61. BIN  Bundle/indice.png
  62. BIN  Bundle/indice@2x.png
  63. BIN  Bundle/next.png
  64. BIN  Bundle/pagelead.png
  65. BIN  Bundle/pagelead@2x.png
  66. BIN  Bundle/pause_player.png
  67. BIN  Bundle/play_player.png
  68. BIN  Bundle/prew.png
  69. BIN  Bundle/reload.png
  70. BIN  Bundle/search.png
  71. BIN  Bundle/search@2x.png
  72. BIN  Bundle/stop.png
  73. BIN  Bundle/text.png
  74. BIN  Bundle/text@2x.png
  75. BIN  Bundle/zoomLock.png
  76. BIN  Bundle/zoomLock@2x.png
  77. BIN  Bundle/zoomUnlock.png
  78. BIN  Bundle/zoomUnlock@2x.png
  79. +5 −4 Classes/KioskApp/FastPDFKit_KioskAppDelegate.m
  80. +2 −2 Classes/Reader/ReaderViewController.h
  81. +41 −24 Classes/Reader/ReaderViewController.m
  82. +337 −0 Classes/ThirdParties/ZipArchive.mm
  83. BIN  Classes/ThirdParties/libziparchive.a
  84. +40 −0 FPKCore/MFDocumentViewController.h
  85. BIN  FPKCore/libFastPdfKit.a
  86. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/FastPdfKit
  87. +40 −0 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentViewController.h
  88. +2 −2 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/ReaderViewController.h
  89. BIN  ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/AudioViewController.nib
  90. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/BookmarkView.nib
  91. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/Info.plist
  92. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/OutlineView.nib
  93. BIN  ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/SearchView2_pad.nib
  94. BIN  ...it.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/SearchView2_phone.nib
  95. BIN  ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/TextDisplayView.nib
  96. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/WebBrowser.nib
  97. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/X.png
  98. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/X@2x.png
  99. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/blackslider.png
  100. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/bookmark_add.png
  101. BIN  ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/bookmark_add@2x.png
  102. BIN  ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeDouble.png
  103. BIN  ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeDouble@2x.png
  104. BIN  ...t.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeOverflow.png
  105. BIN  ...mbeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeOverflow@2x.png
  106. BIN  ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeSingle.png
  107. BIN  ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeSingle@2x.png
  108. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/close.png
  109. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/close_player.png
  110. BIN  ...PdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_l2r.png
  111. BIN  ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_l2r@2x.png
  112. BIN  ...PdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_r2l.png
  113. BIN  ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_r2l@2x.png
  114. BIN  ...ddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/img_outline_triangledown.png
  115. BIN  ...dedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/img_outline_triangleright.png
  116. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/indice.png
  117. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/indice@2x.png
  118. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/next.png
  119. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pagelead.png
  120. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pagelead@2x.png
  121. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pause_player.png
  122. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/play_player.png
  123. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/prew.png
  124. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/reload.png
  125. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/search.png
  126. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/search@2x.png
  127. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/stop.png
  128. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/text.png
  129. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/text@2x.png
  130. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomLock.png
  131. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomLock@2x.png
  132. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomUnlock.png
  133. BIN  ...PdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomUnlock@2x.png
  134. BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/Info.plist
  135. +24 −16 FastPdfKit.xcodeproj/project.pbxproj
  136. +3 −0  OtherSources/FastPdfKit.xcconfig
  137. +1 −0  OtherSources/FastPdfKitFramework.xcconfig
  138. +8 −0 README.md
  139. +0 −1  Resources/FastPdfKit_Kiosk-Info.plist
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/Kiosk_phone5.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
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 100755 → 100644
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/title.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/version.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/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
Deleted file not rendered
View
BIN  Bundle/X@2x.png
Deleted file not rendered
View
BIN  Bundle/blackslider.png
Deleted file not rendered
View
BIN  Bundle/bookmark_add.png
Deleted file 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
9 Classes/KioskApp/FastPDFKit_KioskAppDelegate.m
@@ -18,7 +18,7 @@ @implementation FastPDFKit_KioskAppDelegate
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
- return UIInterfaceOrientationPortrait;
+ return UIInterfaceOrientationMaskAll;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
@@ -69,11 +69,12 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
aMenuViewController = [[MenuViewController_Kiosk alloc]initWithNibName:@"Kiosk_ipad" bundle:MF_BUNDLED_BUNDLE(@"FPKKioskBundle")];
} else {
- NSLog(@"schermo %f",[[UIScreen mainScreen] bounds].size.height);
+ if (([[UIScreen mainScreen] bounds].size.height - 568.0) < FLT_EPSILON ) {
- if ([[UIScreen mainScreen] bounds].size.height == 568 ) {
aMenuViewController = [[MenuViewController_Kiosk alloc]initWithNibName:@"Kiosk_phone5" bundle:MF_BUNDLED_BUNDLE(@"FPKKioskBundle")];
- }else{
+
+ } else {
+
aMenuViewController = [[MenuViewController_Kiosk alloc]initWithNibName:@"Kiosk_phone" bundle:MF_BUNDLED_BUNDLE(@"FPKKioskBundle")];
}
}
View
4 Classes/Reader/ReaderViewController.h
@@ -126,12 +126,11 @@
@property (nonatomic,retain) UIImage * imgText;
@property (nonatomic, readwrite) CGFloat toolbarHeight;
--(void)setNumberOfPageToolbar;
+-(void)updatePageNumberLabel;
-(void)showToolbar;
-(void)hideToolbar;
-
@property (nonatomic, retain) UIToolbar * rollawayToolbar;
@property (nonatomic, retain) UILabel * pageNumLabel;
@@ -158,6 +157,7 @@
@property (nonatomic, retain) UIPopoverController * reusablePopover;
+@property (copy, nonatomic, readwrite) NSString * pageLabelFormat;
-(void)dismissAlternateViewController;
-(void)playVideo:(NSString *)path local:(BOOL)isLocal;
View
65 Classes/Reader/ReaderViewController.m
@@ -54,6 +54,7 @@ @implementation ReaderViewController
@synthesize imgModeSingle, imgModeDouble, imgZoomLock, imgZoomUnlock, imgl2r, imgr2l, imgLeadRight, imgLeadLeft, imgModeOverflow;
@synthesize imgSearch, imgDismiss, imgOutline, imgBookmark, imgText;
+@synthesize pageLabelFormat;
-(UIPopoverController *)prepareReusablePopoverControllerWithController:(UIViewController *)controller {
@@ -641,13 +642,7 @@ -(IBAction) actionPageSliderSlided:(id)sender {
// Update the label.
- if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
- [pageNumLabel setText:PAGE_NUM_LABEL_TEXT(pageNumber,[[self document]numberOfPages])];
-
- }else{
-
- [pageNumLabel setText:PAGE_NUM_LABEL_TEXT_PHONE(pageNumber,[[self document]numberOfPages])];
- }
+ [self updatePageNumberLabel];
}
-(IBAction) actionPageSliderStopped:(id)sender {
@@ -926,9 +921,7 @@ -(void) documentViewController:(MFDocumentViewController *)dvc didGoToPage:(NSUI
// slider to reflect that. If you save the current page as a bookmark to it is a good idea to store the value
// in this callback.
- [pageNumLabel setText:PAGE_NUM_LABEL_TEXT(page,[[self document]numberOfPages])];
-
- [self setNumberOfPageToolbar];
+ [self updatePageNumberLabel];
}
-(void) documentViewController:(MFDocumentViewController *)dvc didChangeModeTo:(MFDocumentMode)mode automatic:(BOOL)automatically {
@@ -942,13 +935,13 @@ -(void) documentViewController:(MFDocumentViewController *)dvc didChangeModeTo:(
[changeModeButton setImage:imgModeSingle forState:UIControlStateNormal];
- //[changeModeBarButtonItem setImage:imgModeSingle];
} else if (mode == MFDocumentModeDouble) {
+
[changeModeButton setImage:imgModeDouble forState:UIControlStateNormal];
- //[changeModeBarButtonItem setImage:imgModeDouble];
+
} else if (mode == MFDocumentModeOverflow) {
+
[changeModeButton setImage:imgModeOverflow forState:UIControlStateNormal];
- //[changeModeBarButtonItem setImage:imgModeOverflow];
}
}
@@ -1091,8 +1084,6 @@ -(void) documentViewController:(MFDocumentViewController *)dvc didReceiveTapAtPo
#pragma mark -
#pragma mark UIViewController lifcecycle
-
-// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
// Create the view of the right size. Keep into consideration height of the status bar and the navigation bar. If
@@ -1131,6 +1122,10 @@ - (void)loadView {
[aView release];
}
+/**
+ * This method will load the image for the toolbar icons. You can override this
+ * method to load different images.
+ */
-(void)loadResources {
if(self.toolbarHeight == 0)
@@ -1204,6 +1199,9 @@ -(void)loadResources {
}
}
+/**
+ * This method will create and customize the toolbar.
+ */
-(void)prepareToolbar {
NSMutableArray * items = nil;
@@ -1563,23 +1561,39 @@ - (void)viewDidLoad {
[self prepareToolbar];
}
-
--(void)setNumberOfPageToolbar{
+/**
+ * This method will update the page number label according to either the
+ * pageLabelFormat, if not nil, or the default format and the page and
+ * total number of pages.
+ */
+-(void)updatePageNumberLabel{
NSString *labelTitle = nil;
- if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
+ if(self.pageLabelFormat) {
- labelTitle = PAGE_NUM_LABEL_TEXT([self page],[[self document]numberOfPages]);
-
- } else {
-
- labelTitle = PAGE_NUM_LABEL_TEXT_PHONE([self page],[[self document]numberOfPages]);
+ labelTitle = [NSString stringWithFormat:self.pageLabelFormat, [self page], [[self document] numberOfPages]];
}
+ else {
+
+ if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
+
+ labelTitle = PAGE_NUM_LABEL_TEXT([self page],[[self document]numberOfPages]);
+
+ }
+ else {
+
+ labelTitle = PAGE_NUM_LABEL_TEXT_PHONE([self page],[[self document]numberOfPages]);
+ }
+ }
+
self.pageNumLabel.text = labelTitle;
}
+/**
+ * This method will show the toolbar.
+ */
-(void)showToolbar {
// Show toolbar, with animation.
@@ -1592,6 +1606,9 @@ -(void)showToolbar {
[UIView commitAnimations];
}
+/**
+ * This method will hide the toolbar.
+ */
-(void)hideToolbar{
// Hide the toolbar, with animation.
@@ -1698,7 +1715,7 @@ -(BOOL)shouldAutorotate {
}
-(NSUInteger)supportedInterfaceOrientations {
- return UIInterfaceOrientationPortrait;
+ return UIInterfaceOrientationMaskAll;
}
- (void)dealloc {
View
337 Classes/ThirdParties/ZipArchive.mm
@@ -0,0 +1,337 @@
+//
+// ZipArchive.mm
+//
+//
+// Created by aish on 08-9-11.
+// acsolu@gmail.com
+// Copyright 2008 Inc. All rights reserved.
+//
+
+#import "ZipArchive.h"
+#import "zlib.h"
+#import "zconf.h"
+
+
+
+@interface ZipArchive (Private)
+
+-(void) OutputErrorMessage:(NSString*) msg;
+-(BOOL) OverWrite:(NSString*) file;
+-(NSDate*) Date1980;
+@end
+
+
+
+@implementation ZipArchive
+@synthesize delegate = _delegate;
+
+-(id) init
+{
+ if( self=[super init] )
+ {
+ _zipFile = NULL ;
+ }
+ return self;
+}
+
+-(void) dealloc
+{
+ [self CloseZipFile2];
+ [super dealloc];
+}
+
+-(BOOL) CreateZipFile2:(NSString*) zipFile
+{
+ _zipFile = zipOpen( (const char*)[zipFile UTF8String], 0 );
+ if( !_zipFile )
+ return NO;
+ return YES;
+}
+
+-(BOOL) CreateZipFile2:(NSString*) zipFile Password:(NSString*) password
+{
+ _password = password;
+ return [self CreateZipFile2:zipFile];
+}
+
+-(BOOL) addFileToZip:(NSString*) file newname:(NSString*) newname;
+{
+ if( !_zipFile )
+ return NO;
+// tm_zip filetime;
+ time_t current;
+ time( &current );
+
+ zip_fileinfo zipInfo = {0};
+// zipInfo.dosDate = (unsigned long) current;
+
+ NSDictionary* attr = [[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES];
+ if( attr )
+ {
+ NSDate* fileDate = (NSDate*)[attr objectForKey:NSFileModificationDate];
+ if( fileDate )
+ {
+ // some application does use dosDate, but tmz_date instead
+ // zipInfo.dosDate = [fileDate timeIntervalSinceDate:[self Date1980] ];
+ NSCalendar* currCalendar = [NSCalendar currentCalendar];
+ uint flags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit |
+ NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit ;
+ NSDateComponents* dc = [currCalendar components:flags fromDate:fileDate];
+ zipInfo.tmz_date.tm_sec = [dc second];
+ zipInfo.tmz_date.tm_min = [dc minute];
+ zipInfo.tmz_date.tm_hour = [dc hour];
+ zipInfo.tmz_date.tm_mday = [dc day];
+ zipInfo.tmz_date.tm_mon = [dc month] - 1;
+ zipInfo.tmz_date.tm_year = [dc year];
+ }
+ }
+
+ int ret ;
+ NSData* data = nil;
+ if( [_password length] == 0 )
+ {
+ ret = zipOpenNewFileInZip( _zipFile,
+ (const char*) [newname UTF8String],
+ &zipInfo,
+ NULL,0,
+ NULL,0,
+ NULL,//comment
+ Z_DEFLATED,
+ Z_DEFAULT_COMPRESSION );
+ }
+ else
+ {
+ data = [ NSData dataWithContentsOfFile:file];
+ uLong crcValue = crc32( 0L,NULL, 0L );
+ crcValue = crc32( crcValue, (const Bytef*)[data bytes], [data length] );
+ ret = zipOpenNewFileInZip3( _zipFile,
+ (const char*) [newname UTF8String],
+ &zipInfo,
+ NULL,0,
+ NULL,0,
+ NULL,//comment
+ Z_DEFLATED,
+ Z_DEFAULT_COMPRESSION,
+ 0,
+ 15,
+ 8,
+ Z_DEFAULT_STRATEGY,
+ [_password cStringUsingEncoding:NSASCIIStringEncoding],
+ crcValue );
+ }
+ if( ret!=Z_OK )
+ {
+ return NO;
+ }
+ if( data==nil )
+ {
+ data = [ NSData dataWithContentsOfFile:file];
+ }
+ unsigned int dataLen = [data length];
+ ret = zipWriteInFileInZip( _zipFile, (const void*)[data bytes], dataLen);
+ if( ret!=Z_OK )
+ {
+ return NO;
+ }
+ ret = zipCloseFileInZip( _zipFile );
+ if( ret!=Z_OK )
+ return NO;
+ return YES;
+}
+
+-(BOOL) CloseZipFile2
+{
+ _password = nil;
+ if( _zipFile==NULL )
+ return NO;
+ BOOL ret = zipClose( _zipFile,NULL )==Z_OK?YES:NO;
+ _zipFile = NULL;
+ return ret;
+}
+
+-(BOOL) UnzipOpenFile:(NSString*) zipFile
+{
+ _unzFile = unzOpen( (const char*)[zipFile UTF8String] );
+ if( _unzFile )
+ {
+ unz_global_info globalInfo = {0};
+ if( unzGetGlobalInfo(_unzFile, &globalInfo )==UNZ_OK )
+ {
+ NSLog([NSString stringWithFormat:@"%d entries in the zip file",globalInfo.number_entry] );
+ }
+ }
+ return _unzFile!=NULL;
+}
+
+-(BOOL) UnzipOpenFile:(NSString*) zipFile Password:(NSString*) password
+{
+ _password = password;
+ return [self UnzipOpenFile:zipFile];
+}
+
+-(BOOL) UnzipFileTo:(NSString*) path overWrite:(BOOL) overwrite
+{
+ BOOL success = YES;
+ int ret = unzGoToFirstFile( _unzFile );
+ unsigned char buffer[4096] = {0};
+ NSFileManager* fman = [NSFileManager defaultManager];
+ if( ret!=UNZ_OK )
+ {
+ [self OutputErrorMessage:@"Failed"];
+ }
+
+ do{
+ if( [_password length]==0 )
+ ret = unzOpenCurrentFile( _unzFile );
+ else
+ ret = unzOpenCurrentFilePassword( _unzFile, [_password cStringUsingEncoding:NSASCIIStringEncoding] );
+ if( ret!=UNZ_OK )
+ {
+ [self OutputErrorMessage:@"Error occurs"];
+ success = NO;
+ break;
+ }
+ // reading data and write to file
+ int read ;
+ unz_file_info fileInfo ={0};
+ ret = unzGetCurrentFileInfo(_unzFile, &fileInfo, NULL, 0, NULL, 0, NULL, 0);
+ if( ret!=UNZ_OK )
+ {
+ [self OutputErrorMessage:@"Error occurs while getting file info"];
+ success = NO;
+ unzCloseCurrentFile( _unzFile );
+ break;
+ }
+ char* filename = (char*) malloc( fileInfo.size_filename +1 );
+ unzGetCurrentFileInfo(_unzFile, &fileInfo, filename, fileInfo.size_filename + 1, NULL, 0, NULL, 0);
+ filename[fileInfo.size_filename] = '\0';
+
+ // check if it contains directory
+ NSString * strPath = [NSString stringWithCString:filename];
+ BOOL isDirectory = NO;
+ if( filename[fileInfo.size_filename-1]=='/' || filename[fileInfo.size_filename-1]=='\\')
+ isDirectory = YES;
+ free( filename );
+ if( [strPath rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"/\\"]].location!=NSNotFound )
+ {// contains a path
+ strPath = [strPath stringByReplacingOccurrencesOfString:@"\\" withString:@"/"];
+ }
+ NSString* fullPath = [path stringByAppendingPathComponent:strPath];
+
+ if( isDirectory )
+ [fman createDirectoryAtPath:fullPath withIntermediateDirectories:YES attributes:nil error:nil];
+ else
+ [fman createDirectoryAtPath:[fullPath stringByDeletingLastPathComponent] withIntermediateDirectories:YES attributes:nil error:nil];
+ if( [fman fileExistsAtPath:fullPath] && !isDirectory && !overwrite )
+ {
+ if( ![self OverWrite:fullPath] )
+ {
+ unzCloseCurrentFile( _unzFile );
+ ret = unzGoToNextFile( _unzFile );
+ continue;
+ }
+ }
+ FILE* fp = fopen( (const char*)[fullPath UTF8String], "wb");
+ while( fp )
+ {
+ read=unzReadCurrentFile(_unzFile, buffer, 4096);
+ if( read > 0 )
+ {
+ fwrite(buffer, read, 1, fp );
+ }
+ else if( read<0 )
+ {
+ [self OutputErrorMessage:@"Failed to reading zip file"];
+ break;
+ }
+ else
+ break;
+ }
+ if( fp )
+ {
+ fclose( fp );
+ // set the orignal datetime property
+ NSDate* orgDate = nil;
+
+ //{{ thanks to brad.eaton for the solution
+ NSDateComponents *dc = [[NSDateComponents alloc] init];
+
+ dc.second = fileInfo.tmu_date.tm_sec;
+ dc.minute = fileInfo.tmu_date.tm_min;
+ dc.hour = fileInfo.tmu_date.tm_hour;
+ dc.day = fileInfo.tmu_date.tm_mday;
+ dc.month = fileInfo.tmu_date.tm_mon+1;
+ dc.year = fileInfo.tmu_date.tm_year;
+
+ NSCalendar *gregorian = [[NSCalendar alloc]
+ initWithCalendarIdentifier:NSGregorianCalendar];
+
+ orgDate = [gregorian dateFromComponents:dc] ;
+ [dc release];
+ [gregorian release];
+ //}}
+
+
+ NSDictionary* attr = [NSDictionary dictionaryWithObject:orgDate forKey:NSFileModificationDate]; //[[NSFileManager defaultManager] fileAttributesAtPath:fullPath traverseLink:YES];
+ if( attr )
+ {
+ // [attr setValue:orgDate forKey:NSFileCreationDate];
+ if( ![[NSFileManager defaultManager] setAttributes:attr ofItemAtPath:fullPath error:nil] )
+ {
+ // cann't set attributes
+ NSLog(@"Failed to set attributes");
+ }
+
+ }
+
+
+
+ }
+ unzCloseCurrentFile( _unzFile );
+ ret = unzGoToNextFile( _unzFile );
+ }while( ret==UNZ_OK && UNZ_OK!=UNZ_END_OF_LIST_OF_FILE );
+ return success;
+}
+
+-(BOOL) UnzipCloseFile
+{
+ _password = nil;
+ if( _unzFile )
+ return unzClose( _unzFile )==UNZ_OK;
+ return YES;
+}
+
+#pragma mark wrapper for delegate
+-(void) OutputErrorMessage:(NSString*) msg
+{
+ if( _delegate && [_delegate respondsToSelector:@selector(ErrorMessage)] )
+ [_delegate ErrorMessage:msg];
+}
+
+-(BOOL) OverWrite:(NSString*) file
+{
+ if( _delegate && [_delegate respondsToSelector:@selector(OverWriteOperation)] )
+ return [_delegate OverWriteOperation:file];
+ return YES;
+}
+
+#pragma mark get NSDate object for 1980-01-01
+-(NSDate*) Date1980
+{
+ NSDateComponents *comps = [[NSDateComponents alloc] init];
+ [comps setDay:1];
+ [comps setMonth:1];
+ [comps setYear:1980];
+ NSCalendar *gregorian = [[NSCalendar alloc]
+ initWithCalendarIdentifier:NSGregorianCalendar];
+ NSDate *date = [gregorian dateFromComponents:comps];
+
+ [comps release];
+ [gregorian release];
+ return date;
+}
+
+
+@end
+
+
View
BIN  Classes/ThirdParties/libziparchive.a
Binary file not shown
View
40 FPKCore/MFDocumentViewController.h
@@ -515,4 +515,44 @@
*/
@property (copy, nonatomic) NSString * cacheEncryptionKey;
+/**
+ This path will be used to cache the thumbnails images. If left undefined by the
+ user, the kit will generate one depending on the documentId first, then a
+ shared one.
+ */
+@property (copy, atomic, readwrite) NSString * thumbnailsCachePath;
+
+/**
+ This path will be used to cache the page images. If left undefined by the
+ user, the kit will generate one depending on the documentId first, then a
+ shared one.
+ */
+@property (copy, atomic, readwrite) NSString * imagesCachePath;
+
+/**
+ Visited pages system.
+ */
+
+/**
+ * This will move to the next visited page, if any.
+ */
+-(void)nextVisitedPage;
+
+/**
+ * This will go back to the previously visited page, if any.
+ */
+-(void)previousVisitedPage;
+
+/**
+ * Amount of forward visited pages. It will be greather than 0
+ * only when the user as jumped back.
+ */
+-(NSInteger)nextVisitedPagesCount;
+
+/**
+ * Amount of previously visited pages. It is usually greather than 0,
+ * unless the user has already jumped to the bottom of the stack.
+ */
+-(NSInteger)previousVisitedPagesCount;
+
@end
View
BIN  FPKCore/libFastPdfKit.a
Binary file not shown
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/FastPdfKit
Binary file not shown
View
40 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/MFDocumentViewController.h
@@ -515,4 +515,44 @@
*/
@property (copy, nonatomic) NSString * cacheEncryptionKey;
+/**
+ This path will be used to cache the thumbnails images. If left undefined by the
+ user, the kit will generate one depending on the documentId first, then a
+ shared one.
+ */
+@property (copy, atomic, readwrite) NSString * thumbnailsCachePath;
+
+/**
+ This path will be used to cache the page images. If left undefined by the
+ user, the kit will generate one depending on the documentId first, then a
+ shared one.
+ */
+@property (copy, atomic, readwrite) NSString * imagesCachePath;
+
+/**
+ Visited pages system.
+ */
+
+/**
+ * This will move to the next visited page, if any.
+ */
+-(void)nextVisitedPage;
+
+/**
+ * This will go back to the previously visited page, if any.
+ */
+-(void)previousVisitedPage;
+
+/**
+ * Amount of forward visited pages. It will be greather than 0
+ * only when the user as jumped back.
+ */
+-(NSInteger)nextVisitedPagesCount;
+
+/**
+ * Amount of previously visited pages. It is usually greather than 0,
+ * unless the user has already jumped to the bottom of the stack.
+ */
+-(NSInteger)previousVisitedPagesCount;
+
@end
View
4 FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Headers/ReaderViewController.h
@@ -126,12 +126,11 @@
@property (nonatomic,retain) UIImage * imgText;
@property (nonatomic, readwrite) CGFloat toolbarHeight;
--(void)setNumberOfPageToolbar;
+-(void)updatePageNumberLabel;
-(void)showToolbar;
-(void)hideToolbar;
-
@property (nonatomic, retain) UIToolbar * rollawayToolbar;
@property (nonatomic, retain) UILabel * pageNumLabel;
@@ -158,6 +157,7 @@
@property (nonatomic, retain) UIPopoverController * reusablePopover;
+@property (copy, nonatomic, readwrite) NSString * pageLabelFormat;
-(void)dismissAlternateViewController;
-(void)playVideo:(NSString *)path local:(BOOL)isLocal;
View
BIN  ...beddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/AudioViewController.nib
Binary file not shown
View
BIN  ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/BookmarkView.nib
Binary file not shown
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/Info.plist
Binary file not shown
View
BIN  ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/OutlineView.nib
Binary file not shown
View
BIN  ...t.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/SearchView2_pad.nib
Binary file not shown
View
BIN  ...embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/SearchView2_phone.nib
Binary file not shown
View
BIN  ...t.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/TextDisplayView.nib
Binary file not shown
View
BIN  ...PdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/WebBrowser.nib
Binary file not shown
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/X.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/X@2x.png
Diff not rendered
View
BIN  ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/blackslider.png
Diff not rendered
View
BIN  ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/bookmark_add.png
Diff not rendered
View
BIN  ...t.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/bookmark_add@2x.png
Diff not rendered
View
BIN  ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeDouble.png
Diff not rendered
View
BIN  ...beddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeDouble@2x.png
Diff not rendered
View
BIN  ...mbeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeOverflow.png
Diff not rendered
View
BIN  ...ddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeOverflow@2x.png
Diff not rendered
View
BIN  ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeSingle.png
Diff not rendered
View
BIN  ...beddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/changeModeSingle@2x.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/close.png
Diff not rendered
View
BIN  ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/close_player.png
Diff not rendered
View
BIN  ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_l2r.png
Diff not rendered
View
BIN  ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_l2r@2x.png
Diff not rendered
View
BIN  ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_r2l.png
Diff not rendered
View
BIN  ....embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/direction_r2l@2x.png
Diff not rendered
View
BIN  ...dframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/img_outline_triangledown.png
Diff not rendered
View
BIN  ...framework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/img_outline_triangleright.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/indice.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/indice@2x.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/next.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pagelead.png
Diff not rendered
View
BIN  ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pagelead@2x.png
Diff not rendered
View
BIN  ...fKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/pause_player.png
Diff not rendered
View
BIN  ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/play_player.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/prew.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/reload.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/search.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/search@2x.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/stop.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/text.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/text@2x.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomLock.png
Diff not rendered
View
BIN  ...dfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomLock@2x.png
Diff not rendered
View
BIN  ...PdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomUnlock.png
Diff not rendered
View
BIN  ...Kit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/FPKReaderBundle.bundle/zoomUnlock@2x.png
Diff not rendered
View
BIN  FastPdfKit.embeddedframework/FastPdfKit.framework/Versions/A/Resources/Info.plist
Binary file not shown
View
40 FastPdfKit.xcodeproj/project.pbxproj
@@ -174,6 +174,8 @@
0189D3BD1486C1C000635C5D /* FPKGlyphBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 0189D3BB1486C1C000635C5D /* FPKGlyphBox.h */; settings = {ATTRIBUTES = (Public, ); }; };
0189D3BF1486C28400635C5D /* MFDocumentManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 0189D3BE1486C28400635C5D /* MFDocumentManager.h */; };
0189D3C01486C28400635C5D /* MFDocumentManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 0189D3BE1486C28400635C5D /* MFDocumentManager.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 0193CA0A161B43BA0060A401 /* ZipArchive.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0193CA09161B43B90060A401 /* ZipArchive.mm */; };
+ 0193CA0B161B43BA0060A401 /* ZipArchive.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0193CA09161B43B90060A401 /* ZipArchive.mm */; };
01AD4F1C14CF0F8600DF0AB3 /* MFPDFOutlineRemoteEntry.h in Headers */ = {isa = PBXBuildFile; fileRef = 01AD4F1B14CF0F8600DF0AB3 /* MFPDFOutlineRemoteEntry.h */; };
01AD4F1D14CF0F8600DF0AB3 /* MFPDFOutlineRemoteEntry.h in Headers */ = {isa = PBXBuildFile; fileRef = 01AD4F1B14CF0F8600DF0AB3 /* MFPDFOutlineRemoteEntry.h */; settings = {ATTRIBUTES = (Public, ); }; };
01B3DAD9146D920F00F8C740 /* Stuff.h in Headers */ = {isa = PBXBuildFile; fileRef = 01B3DAD8146D920F00F8C740 /* Stuff.h */; };
@@ -348,8 +350,6 @@
958CBAB4141E65770094D4C1 /* (null) in Frameworks */ = {isa = PBXBuildFile; };
958CBAB5141E66060094D4C1 /* Snippets.txt in Resources */ = {isa = PBXBuildFile; fileRef = 890986A913CECF0F00656A49 /* Snippets.txt */; };
9597F995125D17E400E17B47 /* iTunesArtwork in Resources */ = {isa = PBXBuildFile; fileRef = 9597F994125D17E400E17B47 /* iTunesArtwork */; };
- 959BB88B13D974D2004CB203 /* libziparchive.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 01BC07B413C755610077CE63 /* libziparchive.a */; };
- 959BB88C13D974D8004CB203 /* libziparchive.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 01BC07B413C755610077CE63 /* libziparchive.a */; };
95B8BD6013CCA59800195F0F /* Manual.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 95B8BD5E13CCA59800195F0F /* Manual.pdf */; };
95B8BD6113CCA59800195F0F /* ManualCrypt.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 95B8BD5F13CCA59800195F0F /* ManualCrypt.pdf */; };
95B9C57D15110E6C00411AF6 /* pause@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 95B9C57C15110E6C00411AF6 /* pause@2x.png */; };
@@ -500,6 +500,7 @@
01884AC6131E96CE0045038F /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
0189D3BB1486C1C000635C5D /* FPKGlyphBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FPKGlyphBox.h; sourceTree = "<group>"; };
0189D3BE1486C28400635C5D /* MFDocumentManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFDocumentManager.h; sourceTree = "<group>"; };
+ 0193CA09161B43B90060A401 /* ZipArchive.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ZipArchive.mm; sourceTree = "<group>"; };
01AB4AE413EFE267008EB17B /* TVThumbnailView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TVThumbnailView.h; sourceTree = "<group>"; };
01AB4AE513EFE267008EB17B /* TVThumbnailView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TVThumbnailView.m; sourceTree = "<group>"; };
01AD4F1B14CF0F8600DF0AB3 /* MFPDFOutlineRemoteEntry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFPDFOutlineRemoteEntry.h; sourceTree = "<group>"; };
@@ -522,7 +523,6 @@
01BC07B113C755610077CE63 /* ASINSStringAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASINSStringAdditions.h; sourceTree = "<group>"; };
01BC07B213C755610077CE63 /* ASINSStringAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASINSStringAdditions.m; sourceTree = "<group>"; };
01BC07B313C755610077CE63 /* ASIProgressDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASIProgressDelegate.h; sourceTree = "<group>"; };
- 01BC07B413C755610077CE63 /* libziparchive.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libziparchive.a; sourceTree = "<group>"; };
01BC07B613C755610077CE63 /* crypt.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = crypt.h; sourceTree = "<group>"; };
01BC07B713C755610077CE63 /* ioapi.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ioapi.c; sourceTree = "<group>"; };
01BC07B813C755610077CE63 /* ioapi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ioapi.h; sourceTree = "<group>"; };
@@ -716,7 +716,6 @@
buildActionMask = 2147483647;
files = (
01598DDB13CAE917007344EE /* Foundation.framework in Frameworks */,
- 959BB88C13D974D8004CB203 /* libziparchive.a in Frameworks */,
39224A2114685400004A3EB1 /* NewsstandKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -738,7 +737,6 @@
01884AC7131E96CE0045038F /* MobileCoreServices.framework in Frameworks */,
6F9FBD1A1356F2CD006884F5 /* AVFoundation.framework in Frameworks */,
010D14B213CAF62500FD6F08 /* MediaPlayer.framework in Frameworks */,
- 959BB88B13D974D2004CB203 /* libziparchive.a in Frameworks */,
3922492614683424004A3EB1 /* NewsstandKit.framework in Frameworks */,
0124AE3215D98F2000EBFA22 /* libFastPdfKit.a in Frameworks */,
);
@@ -1163,8 +1161,8 @@
01BC07B513C755610077CE63 /* minizip */,
01BC07BF13C755610077CE63 /* Reachability.h */,
01BC07C013C755610077CE63 /* Reachability.m */,
+ 0193CA09161B43B90060A401 /* ZipArchive.mm */,
01BC07C113C755610077CE63 /* ZipArchive.h */,
- 01BC07B413C755610077CE63 /* libziparchive.a */,
);
path = ThirdParties;
sourceTree = "<group>";
@@ -2102,6 +2100,7 @@
01598DED13CAEAA6007344EE /* Reachability.m in Sources */,
01598DEA13CAEA78007344EE /* ASINetworkQueue.m in Sources */,
01598DEB13CAEA78007344EE /* ASINSStringAdditions.m in Sources */,
+ 0193CA0B161B43BA0060A401 /* ZipArchive.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -2140,6 +2139,7 @@
0123605313CC917600861EB7 /* WebBrowser.m in Sources */,
0161F229141FABE8000EA8E4 /* ReaderViewController.m in Sources */,
0161F22E141FAC24000EA8E4 /* OutlineViewController.m in Sources */,
+ 0193CA0A161B43BA0060A401 /* ZipArchive.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -2273,6 +2273,7 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
+ VALID_ARCHS = "armv7 armv7s";
};
name = Debug;
};
@@ -2296,6 +2297,7 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
+ VALID_ARCHS = "armv7 armv7s";
};
name = Release;
};
@@ -2324,6 +2326,7 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
+ VALID_ARCHS = "armv7 armv7s";
};
name = Debug;
};
@@ -2349,6 +2352,7 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
+ VALID_ARCHS = "armv7 armv7s";
};
name = Release;
};
@@ -2374,13 +2378,14 @@
LIBRARY_SEARCH_PATHS = (
"\"$(SRCROOT)/FPKCore\"",
"\"$(SRCROOT)/ThirdParties\"/**",
+ "\"$(SRCROOT)/Classes/ThirdParties\"",
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "FastPdfKit Kiosk";
PROVISIONING_PROFILE = "";
SDKROOT = iphoneos;
SKIP_INSTALL = NO;
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
};
name = Debug;
};
@@ -2405,13 +2410,14 @@
LIBRARY_SEARCH_PATHS = (
"\"$(SRCROOT)/FPKCore\"",
"\"$(SRCROOT)/ThirdParties\"/**",
+ "\"$(SRCROOT)/Classes/ThirdParties\"",
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "FastPdfKit Kiosk";
PROVISIONING_PROFILE = "";
SDKROOT = iphoneos;
SKIP_INSTALL = NO;
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
ZERO_LINK = NO;
};
name = Release;
@@ -2420,6 +2426,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = YES;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
@@ -2439,7 +2446,7 @@
SKIP_INSTALL = NO;
TARGETED_DEVICE_FAMILY = "1,2";
USER_HEADER_SEARCH_PATHS = "";
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
};
name = Debug;
};
@@ -2447,6 +2454,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = YES;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = YES;
@@ -2465,7 +2473,7 @@
TARGETED_DEVICE_FAMILY = "1,2";
USER_HEADER_SEARCH_PATHS = "";
VALIDATE_PRODUCT = YES;
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
};
name = Release;
};
@@ -2639,7 +2647,7 @@
);
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
WRAPPER_EXTENSION = app;
};
name = Debug;
@@ -2712,7 +2720,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
VALIDATE_PRODUCT = YES;
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
WRAPPER_EXTENSION = app;
};
name = Release;
@@ -2749,7 +2757,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
UNLOCALIZED_RESOURCES_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Resources";
- VALID_ARCHS = "armv7 i386";
+ VALID_ARCHS = "armv7 i386 armv7s";
WRAPPER_EXTENSION = framework;
};
name = Debug;
@@ -2783,7 +2791,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
UNLOCALIZED_RESOURCES_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Resources";
- VALID_ARCHS = "armv7 i386";
+ VALID_ARCHS = "armv7 i386 armv7s";
WRAPPER_EXTENSION = framework;
};
name = Release;
@@ -2802,7 +2810,7 @@
PRODUCT_NAME = "FastPdfKit Sample";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
WARNING_CFLAGS = "";
};
name = Debug;
@@ -2822,7 +2830,7 @@
PRODUCT_NAME = "FastPdfKit Sample";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
- VALID_ARCHS = armv7;
+ VALID_ARCHS = "armv7 armv7s";
WARNING_CFLAGS = "";
};
name = Release;
View
3  OtherSources/FastPdfKit.xcconfig
@@ -0,0 +1,3 @@
+USER_HEADER_SEARCH_PATHS = $(inherited) $(FASTPDFKIT_DIR)/** $(FASTPDFKIT_DIR)/FPKCore $(FASTPDFKIT_DIR)/Classes/**
+LIBRARY_SEARCH_PATHS = $(inherited) $(FASTPDFKIT_DIR)/**
+OTHER_LDFLAGS = $(inherited) -framework AudioToolbox -framework MediaPlayer -framework MobileCoreServices -framework CFNetwork -framework CoreText -framework UIKit -framework CoreGraphics -framework Foundation -framework QuartzCore -framework AVFoundation -framework CoreFoundation -framework SystemConfiguration -lz -lFPKReaderLib
View
1  OtherSources/FastPdfKitFramework.xcconfig
@@ -0,0 +1 @@
+OTHER_LDFLAGS = $(inherited) -framework AudioToolbox -framework MediaPlayer -framework MobileCoreServices -framework CFNetwork -framework CoreText -framework UIKit -framework CoreGraphics -framework Foundation -framework QuartzCore -framework AVFoundation -framework CoreFoundation -framework SystemConfiguration -lz -ObjC
View
8 README.md
@@ -300,6 +300,14 @@ This guide is also available as [screencast number 4](http://fastpdfkit.com/tuto
## Changelog
+# Update October 2nd, 2012
+* Fixed a crash while reading certain documents annotations
+* Finally fixed layer shadow (again)
+* Fixed bad overflow mode page position with some documents
+* Sligthy changed starting page behavior, now the slider should update properly
+* Added a visited page system similar to web browser one, check the MFDocumentViewController.
+* You can now set the thumbnail and image cache folders
+
# Update September 4th, 2012
* Fixed missing iPhone toolbar images
* Thumbnails are now JPEG
View
1  Resources/FastPdfKit_Kiosk-Info.plist
@@ -76,7 +76,6 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
Please sign in to comment.
Something went wrong with that request. Please try again.