|
@@ -17,7 +17,7 @@
|
|
#import <AVFAudio/AVFAudio.h>
|
|
#import <AVFAudio/AVFAudio.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
|
|
-@interface CPDFViewController () <CPDFSoundPlayBarDelegate,CPDFAnnotationBarDelegate,CPDFToolsViewControllerDelegate,CPDFNoteOpenViewControllerDelegate,CPDFBOTAViewControllerDelegate,CPDFEditToolBarDelegate,CPDFFormBarDelegate,CPDFListViewDelegate,CPDFPageEditViewControllerDelegate,CPDFSignatureViewControllerDelegate>
|
|
|
|
|
|
+@interface CPDFViewController () <CPDFSoundPlayBarDelegate,CPDFAnnotationBarDelegate,CPDFToolsViewControllerDelegate,CPDFNoteOpenViewControllerDelegate,CPDFBOTAViewControllerDelegate,CPDFEditToolBarDelegate,CPDFFormBarDelegate,CPDFListViewDelegate,CPDFSignatureViewControllerDelegate>
|
|
|
|
|
|
@property(nonatomic, strong) CPDFAnnotationBar *annotationBar;
|
|
@property(nonatomic, strong) CPDFAnnotationBar *annotationBar;
|
|
|
|
|
|
@@ -780,29 +780,5 @@
|
|
[self.navigationController presentViewController:pageEditViewcontroller animated:YES completion:nil];
|
|
[self.navigationController presentViewController:pageEditViewcontroller animated:YES completion:nil];
|
|
}
|
|
}
|
|
|
|
|
|
-- (void)enterPDFPageEdit {
|
|
|
|
- [super enterPDFPageEdit];
|
|
|
|
- CPDFPageEditViewController *pageEditViewcontroller = [[CPDFPageEditViewController alloc] initWithPDFView:self.pdfListView];
|
|
|
|
- pageEditViewcontroller.pageEditDelegate = self;
|
|
|
|
- pageEditViewcontroller.modalPresentationStyle = UIModalPresentationFullScreen;
|
|
|
|
- [self.navigationController presentViewController:pageEditViewcontroller animated:YES completion:nil];
|
|
|
|
- [pageEditViewcontroller beginEdit];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-#pragma mark - CPDFPageEditViewControllerDelegate
|
|
|
|
-
|
|
|
|
-- (void)pageEditViewControllerDone:(CPDFPageEditViewController *)pageEditViewController {
|
|
|
|
- __weak typeof(self) weakSelf = self;
|
|
|
|
- [weakSelf reloadDocumentWithFilePath:self.filePath password:nil completion:^(BOOL result) {
|
|
|
|
- [weakSelf.pdfListView reloadInputViews];
|
|
|
|
- }];
|
|
|
|
-
|
|
|
|
- [weakSelf.pdfListView reloadInputViews];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-- (void)pageEditViewController:(CPDFPageEditViewController *)pageEditViewController pageIndex:(NSInteger)pageIndex {
|
|
|
|
- [self.pdfListView goToPageIndex:pageIndex animated:NO];
|
|
|
|
- [self.navigationController popViewControllerAnimated:YES];
|
|
|
|
-}
|
|
|
|
|
|
|
|
@end
|
|
@end
|