23 #import <UIKit/UIKit.h>
24 #import "FSLocalization.h"
26 NS_ASSUME_NONNULL_BEGIN
186 - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
193 - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
199 - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;
215 - (void)onDocOpened:(
FSPDFDoc * _Nullable)document error:(
int)error;
221 - (void)onDocWillClose:(
FSPDFDoc *)document;
228 - (void)onDocClosed:(
FSPDFDoc * _Nullable)document error:(
int)error;
234 - (void)onDocWillSave:(
FSPDFDoc *)document;
241 - (void)onDocSaved:(
FSPDFDoc *)document error:(
int)error;
250 - (void)onDocLoading:(
FSPDFDoc *)document progress:(
int)progress;
265 - (void)onPageChanged:(
int)oldIndex currentIndex:(
int)currentIndex;
272 - (void)onPageVisible:(
int)index;
279 - (void)onPageInvisible:(
int)index;
290 - (void)onPagesWillRemove:(NSArray<NSNumber *> *)indexes;
298 - (void)onPagesWillMove:(NSArray<NSNumber *> *)indexes dstIndex:(
int)dstIndex;
306 - (void)onPagesWillRotate:(NSArray<NSNumber *> *)indexes rotation:(
int)rotation;
313 - (void)onPagesRemoved:(NSArray<NSNumber *> *)indexes;
321 - (void)onPagesMoved:(NSArray<NSNumber *> *)indexes dstIndex:(
int)dstIndex;
329 - (void)onPagesRotated:(NSArray<NSNumber *> *)indexes rotation:(
int)rotation;
335 - (void)onPagesInsertedAtRange:(NSRange)range;
342 - (void)onPagesWillFlatten:(
int)index;
349 - (void)onPagesFlattened:(
int)index;
378 - (void)onScrollViewDidScroll:(UIScrollView *)scrollView;
384 - (void)onScrollViewDidZoom:(UIScrollView *)scrollView;
390 - (void)onScrollViewWillBeginDragging:(UIScrollView *)scrollView;
397 - (void)onScrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;
403 - (void)onScrollViewWillBeginDecelerating:(UIScrollView *)scrollView;
409 - (void)onScrollViewDidEndDecelerating:(UIScrollView *)scrollView;
415 - (void)onScrollViewWillBeginZooming:(UIScrollView *)scrollView;
421 - (void)onScrollViewDidEndZooming:(UIScrollView *)scrollView;
432 - (void)layoutSubviewsFromPDFViewCtrl:(
FSPDFViewCtrl *)pdfViewCtrl;
437 - (void)didMoveToWindowFromPDFViewCtrl:(
FSPDFViewCtrl *)pdfViewCtrl;
452 - (BOOL)onLongPress:(UILongPressGestureRecognizer *)gestureRecognizer;
461 - (BOOL)onTap:(UITapGestureRecognizer *)gestureRecognizer;
470 - (BOOL)onDoubleTap:(UITapGestureRecognizer *)gestureRecognizer;
479 - (BOOL)onPan:(UIPanGestureRecognizer *)gestureRecognizer;
488 - (BOOL)onShouldBegin:(UIGestureRecognizer *)gestureRecognizer;
499 - (BOOL)onPageGestureRecognizer:(
int)pageIndex gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;
512 - (void)onDraw:(
int)pageIndex inContext:(CGContextRef)context;
584 - (BOOL)onTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
594 - (BOOL)onTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
604 - (BOOL)onTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
614 - (BOOL)onTouchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
627 - (BOOL)shouldDrawAnnot:(
FSAnnot *)annot;
646 - (BOOL)movePagesFromIndexes:(NSArray<NSNumber *> *)sourcePageIndexes toIndex:(NSUInteger)pageIndex;
654 - (BOOL)deletePagesAtIndexes:(NSArray<NSNumber *> *)pageIndexes;
681 - (BOOL)rotatePagesAtIndexes:(NSArray<NSNumber *> *)pageIndexes clockwise:(BOOL)clockwise;
693 - (BOOL)insertPageFromImage:(UIImage *__nonnull)image atIndex:(NSUInteger)pageIndex;
712 - (BOOL)insertPages:(
int)index width:(
float)width height:(
float)height style:(
PDF_PAGE_STYLE_TYPE)style color:(
unsigned int)color rotation:(
FSRotation)rotation count:(
int)count;
756 - (void)insertPagesFromDocument:(
FSPDFDoc *)document withSourceIndexes:(NSArray<NSNumber *> *)sourcePagesIndexes flags:(
FSPDFDocImportPageFlags)flags layerName:(NSString * _Nullable)layerName atIndex:(NSUInteger)destinationIndex success:(
void (^)(NSString *result))success error:(
void (^)(NSString *errorInfo))error ;
763 -(void)stacktraceInfo:(NSString*)stackInfo ;
807 @property (nonatomic, strong, readonly, nullable) NSString *
filePath;
825 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
827 @property (nonatomic, weak) UIWindowScene *windowScene API_AVAILABLE(ios(13.0));
834 #pragma mark - View control Initialize
842 - (instancetype)initWithFrame:(CGRect)frame;
844 #pragma mark - Events
970 #pragma mark - Open/Close/Save Document
1014 - (void)openDoc:(NSString *)filePath password:(NSString *_Nullable)password completion:(
void (^_Nullable)(
FSErrorCode error))completion;
1023 - (void)openDocFromMemory:(NSData *)buffer password:(NSString *_Nullable)password completion:(
void (^_Nullable)(
FSErrorCode error))completion;
1032 - (void)openDocFromFileReader:(
id<
FSFileReaderCallback>)fileReader password:(NSString *_Nullable)password completion:(
void (^_Nullable)(
FSErrorCode error))completion;
1038 - (void)closeDoc:(
void (^_Nullable)(
void))cleanup;
1061 #pragma mark - Get Page
1081 - (int)getPageIndex:(CGPoint)displayViewPt;
1115 - (BOOL)isPageVisible:(
int)pageIndex;
1117 #pragma mark - Rotation View
1124 -(void)rotateView:(
int)rotation;
1131 #pragma mark - Page Navigation
1143 - (BOOL)gotoPage:(
int)index animated:(BOOL)animated;
1156 - (BOOL)gotoPage:(
int)index withDocPoint:(
FSPointF *)point animated:(BOOL)animated;
1170 - (BOOL)gotoPage:(
int)index zoomToDocRect:(
FSRectF *)rect animated:(BOOL)animated;
1185 - (BOOL)gotoPage:(
int)index animated:(BOOL)animated needJumpedNode:(BOOL)needJumpedNode;
1199 - (void)addPageJumpedNode:(
int)indexOld index:(
int)indexNew animated:(BOOL)animated;
1209 - (BOOL)gotoFirstPage:(BOOL)animated;
1219 - (BOOL)gotoLastPage:(BOOL)animated;
1229 - (BOOL)gotoNextPage:(BOOL)animated;
1239 - (BOOL)gotoPrevPage:(BOOL)animated;
1268 - (void)gotoPrevView:(BOOL)animated;
1275 - (void)gotoNextView:(BOOL)animated;
1277 #pragma mark - Reflow
1291 #pragma mark - Scale
1320 - (void)setZoom:(
float)zoom;
1329 - (void)setZoom:(
float)zoom withSlider:(BOOL)isWithSlider;
1338 - (void)setZoom:(
float)zoom origin:(CGPoint)origin;
1352 #pragma mark - Display mode
1375 - (void)setDefaultPageWhenDocumentOpened:(
int)index;
1387 - (void)setContinuous:(BOOL)isContinuous;
1399 - (void)setViewSignedDocument:(BOOL)isViewSignedDocument;
1400 #pragma mark - Crop mode
1408 - (UIEdgeInsets)getCropInsets:(
int)pageIndex;
1442 - (BOOL)setCropPageRect:(
int)pageIndex pdfRect:(
FSRectF *_Nullable)pdfRect;
1444 #pragma mark - Viewer preference
1450 - (void)setBackgroundColor:(UIColor *_Nullable)color;
1452 #pragma mark - Viewer properties
1472 - (void)setHScrollPos:(
double)pos animated:(BOOL)animated;
1480 - (void)setVScrollPos:(
double)pos animated:(BOOL)animated;
1499 - (void)scrollDisplayView:(
float)distanceX distanceY: (
float)distanceY;
1501 #pragma mark - Viewer dimension
1523 - (float)getPageViewWidth:(
int)pageIndex;
1533 - (float)getPageViewHeight:(
int)pageIndex;
1551 - (UIView *)getPageView:(
int)pageIndex;
1564 - (UIView *)getOverlayView:(
int)pageIndex;
1583 - (BOOL)appendPageView:(UIView *)pageView;
1588 #pragma mark - Coordinate Conversion
1599 - (CGRect)convertPageViewRectToDisplayViewRect:(CGRect)rect pageIndex:(
int)pageIndex;
1610 - (CGRect)convertDisplayViewRectToPageViewRect:(CGRect)rect pageIndex:(
int)pageIndex;
1621 - (CGPoint)convertDisplayViewPtToPageViewPt:(CGPoint)point pageIndex:(
int)pageIndex;
1632 - (CGPoint)convertPageViewPtToDisplayViewPt:(CGPoint)point pageIndex:(
int)pageIndex;
1643 - (CGPoint)convertPdfPtToPageViewPt:(
FSPointF *)point pageIndex:(
int)pageIndex;
1654 - (
FSPointF *)convertPageViewPtToPdfPt:(CGPoint)point pageIndex:(
int)pageIndex;
1666 - (CGPoint)convertReflowPagePtToPageViewPt:(
FSPointF *)point reflowPage:(
FSReflowPage *)reflowPage pageIndex:(
int)pageIndex;
1678 - (
FSPointF *)convertPageViewPtToReflowPagePt:(CGPoint)point reflowPage:(
FSReflowPage *)reflowPage pageIndex:(
int)pageIndex;
1690 - (CGRect)convertReflowPageRectToPageViewRect:(
FSRectF *)rect reflowPage:(
FSReflowPage *)reflowPage pageIndex:(
int)pageIndex;
1702 - (
FSRectF *)convertPageViewRectToReflowPageRect:(CGRect)rect reflowPage:(
FSReflowPage *)reflowPage pageIndex:(
int)pageIndex;
1713 - (CGRect)convertPdfRectToPageViewRect:(
FSRectF *)rect pageIndex:(
int)pageIndex;
1724 - (
FSRectF *)convertPageViewRectToPdfRect:(CGRect)rect pageIndex:(
int)pageIndex;
1734 - (
FSMatrix2D *)getDisplayMatrix:(
int)pageIndex;
1746 - (
FSMatrix2D *)getDisplayMatrix:(
int)pageIndex fromOrigin:(CGPoint)originPoint;
1748 #pragma mark - Refresh
1761 - (void)
refresh:(CGRect)rect pageIndex:(
int)pageIndex;
1770 - (void)
refresh:(CGRect)rect pageIndex:(
int)pageIndex needRender:(BOOL)needRender;
1781 - (void)
refresh:(CGRect)rect pageIndex:(
int)pageIndex needRender:(BOOL)needRender clearCache:(BOOL)clearCache;
1790 - (void)
refresh:(
int)pageIndex;
1798 - (void)
refresh:(
int)pageIndex needRender:(BOOL)needRender;
1808 - (void)
refresh:(
int)pageIndex needRender:(BOOL)needRender clearCache:(BOOL)clearCache;
1822 #pragma mark - Gesture
1834 - (UITapGestureRecognizer *)getPageViewDoubleTapGesture:(
int)pageIndex;
1866 -(void)setPageSpacing:(
int)pageSpace;
1894 - (void)setPageViewEdgeInsets:(UIEdgeInsets)pageViewEdgeInsets moveOffset:(BOOL)moveOffset;
1897 #pragma mark - XML Forms Architecture File
1909 -(BOOL)reloadXFADoc:(FSDocProviderCallbackPageViewEventType)page_view_event_type page_index:(NSArray<NSNumber *> *)pageIndexes;
1912 #pragma mark - Rights Management Services
1934 + (BOOL)handleMSALResponse:(nonnull NSURL *)response sourceApplication:(nullable NSString *)sourceApplication;
1939 - (void)setRMSAppClientId:(nonnull NSString *)appClientId redirectURI:(nonnull NSString *)redirectURI;
1944 #pragma mark - Open file async
1949 @property (nonatomic, strong, nullable) NSString *cacheFilePath;
1953 @property (nonatomic, assign) BOOL isDownloadAll;
1961 @property (nonatomic, strong) NSMutableDictionary *properties;
1970 -(void) setRequestProperty:(NSString *)key Value:(NSString *)value ;
1987 - (void)openDocAtURL:(NSURL *)url password:(NSString *)password completion:(
void (^)(
FSErrorCode error))completion;
2000 - (void)openDocFromURL:(NSURL *)url password:(NSString *)password cacheOption:(nullable
CacheFileOption *)cacheOption httpRequestProperties:(nullable
HttpRequestProperties *)properties completion:(
void (^)(
FSErrorCode error))completion;
2007 -(void)clearCacheFile:(NSString *)url;
2023 @property (nonatomic, copy) NSString *certSerialNum;
2024 @property (nonatomic, copy) NSString *certPublisher;
2025 @property (nonatomic, copy) NSString *certStartDate;
2026 @property (nonatomic, copy) NSString *certEndDate;
2027 @property (nonatomic, copy) NSString *certEmailInfo;
2028 @property (nonatomic, copy) NSString *certOrganization;
2029 @property (nonatomic, copy) NSString *certOrganizationUnit;
2031 @property (nonatomic, assign)
const unsigned int *byteRangeArray;
2032 @property (nonatomic, assign)
int sizeofArray;
2033 @property (nonatomic, assign)
int ltvState;
2034 @property (nonatomic, copy) NSDictionary *cerInfoDic;
2038 @property (nonatomic, copy) NSString *certFile;
2039 @property (nonatomic, copy) NSString *certPwd;
2040 @property (nonatomic, copy) NSString *subfilter;
2041 @property (nonatomic, copy) NSString *signFilePath;
2042 @property (nonatomic, copy) NSString *imagePath;
2044 @property (nonatomic, copy) NSString *sigName;
2061 +(NSMutableArray *)getCertFromSignatureContent:(
FSSignature *)signature ;
2062 +(NSMutableDictionary *)getTrustCertificateInformation:(NSData *)certData ;
2063 +(BOOL)isCertTrusted:(NSData *)cert toTrust:(NSData*)needBeTrustedCertData;
2066 API_AVAILABLE(ios(13.0))
@protocol FSPDFMultipleScenes <NSObject>
2068 + (NSSet<id<FSPDFMultipleScenes>> *)connectedScenes;
2077 API_AVAILABLE(ios(13.0))
@interface FSPDFViewCtrl (SupportsMultipleScenes) <FSPDFMultipleScenes>
2083 NS_ASSUME_NONNULL_END
@ PDF_CERT_ERROR_FILE
File format error or invalid file.
Definition: FSPDFViewControl.h:2054
file reading interface.
Definition: FSPDFObjC.h:7593
void onDocWillOpen()
Triggered when the document will be opened.
PDF_PAGE_BINDING_EDGE pageBindingEdge
Set or get the Page Binding.
Definition: FSPDFViewControl.h:824
@ PDF_DISPLAY_ZOOMMODE_FITHEIGHT
Zoom mode: fit page height.
Definition: FSPDFViewControl.h:93
@ PDF_LAYOUT_MODE_TWO_RIGHT
Facing mode. Cover page right.
Definition: FSPDFViewControl.h:45
The PDF document event listener.
Definition: FSPDFViewControl.h:203
PDF_PAGE_BINDING_EDGE
Enumeration for page binding edge.
Definition: FSPDFViewControl.h:71
@ PDF_DISPLAY_ZOOMMODE_FITWIDTH
Zoom mode: fit page width.
Definition: FSPDFViewControl.h:91
@ FS_PAGESPACING_HORIZONTAL
PageSpcaing horizontal direction.
Definition: FSPDFViewControl.h:118
FSRendererContentFlag
Enumeration for rendering content flags.
Definition: FSPDFObjC.h:1224
FSGestureLockOptions
Definition: FSPDFViewControl.h:147
@ FSGestureLockOptionDoubleTap
Lock double-tap gesture.
Definition: FSPDFViewControl.h:153
@ PDF_PAGE_STYLE_TYPE_MUSIC
Insert page music style.
Definition: FSPDFViewControl.h:137
double getVScrollRange()
Get the maximum vertical scroll range.
PDF_REFLOW_REFLOWMODE getReflowMode()
Get reflow mode.
@ PDF_LAYOUT_MODE_TWO_MIDDLE
Facing mode. Cover page middle.
Definition: FSPDFViewControl.h:47
@ PDF_PAGE_BINDING_RIGHT_EDGE
Definition: FSPDFViewControl.h:77
@ PDF_REFLOW_WITHIMAGE
Reflow both text and image on PDF page.
Definition: FSPDFViewControl.h:60
Device rotation delegate.
Definition: FSPDFViewControl.h:178
float getZoom()
Get the zoom level. Valid range: from 1.0 to 20.0 for reflow mode, others 1.0 to 10....
Definition: FSPDFViewControl.h:1958
double getHScrollRange()
Get the maximum horizontal scroll range.
BOOL keepZoomRatio
Whether keep same page zoom when turning pages. Defaults is YES.
Definition: FSPDFViewControl.h:815
@ PDF_REFLOW_NONE
No reflow.
Definition: FSPDFViewControl.h:58
The gesture event listener.
Definition: FSPDFViewControl.h:442
The UI extensions manager.
Definition: FSPDFViewControl.h:618
Definition: FSPDFObjC.h:1235
Definition: FSPDFViewControl.h:2038
PDF_DISPLAY_ZOOMMODE getZoomMode()
get the zoom mode.
@ PDF_CROP_MODE_NONE
No crop.
Definition: FSPDFViewControl.h:103
BOOL shouldRecover
Whether or not should view control recover itself when runs out of memory. Default is YES.
Definition: FSPDFViewControl.h:805
Definition: FSPDFObjC.h:4922
PDF_DISPLAY_ZOOMMODE
Enumeration for PDF display zoom mode.
Definition: FSPDFViewControl.h:85
void clearRenderCache()
Clear the render cache.
double getVScrollPos()
Get the vertical scroll position.
void onRecovered()
Triggered after the view control has recovered from running out of memory.
@ PDF_REFLOW_ONLYTEXT
Reflow just text on PDF page.
Definition: FSPDFViewControl.h:62
Definition: FSPDFViewControl.h:1913
The reflow event listener.
Definition: FSPDFViewControl.h:542
void recoverForOOM()
Do the recovering when Foxit PDF SDK runs out of memory.
@ PDF_DISPLAY_ZOOMMODE_FITPAGE
Zoom mode: fit page.
Definition: FSPDFViewControl.h:89
Definition: FSPDFViewControl.h:1974
BOOL isNightMode
Night mode. A convenient way to set FSPDFViewControl::colorMode to FSRendererColorMode::FSRendererCol...
Definition: FSPDFViewControl.h:790
BOOL IsChangeLayoutMode
is change layout mode.
Definition: FSPDFViewControl.h:817
@ FSGestureLockOptionAll
Lock all gestures.
Definition: FSPDFViewControl.h:161
@ PDF_PAGE_BINDING_UNKNOWN
Definition: FSPDFViewControl.h:73
FSPDFDocImportPageFlags
Enumeration for flags used for importing pages.
Definition: FSPDFObjC.h:4881
bool isOwner()
Check if the current document is opened with the owner access.
The page organizer delegate, which handles moving/deleting/inserting pages..etc.
Definition: FSPDFViewControl.h:631
NSString * getDocumentFilePath()
get file path to use in thumbnail
PDF_REFLOW_REFLOWMODE
Enumeration for page reflow mode.
Definition: FSPDFViewControl.h:56
@ PDF_LAYOUT_MODE_REFLOW
Reflow mode.
Definition: FSPDFViewControl.h:41
FSPDFDocUserPermissions getDocPermissions()
Get the permissions of the current PDF document.
void onWillRecover()
Triggered before recovering the view control.
Definition: FSPDFViewControl.h:2071
PDF_CERT_ERROR_CODE
Enumeration for certificate related error code.
Definition: FSPDFViewControl.h:2051
float getDisplayViewHeight()
Get the height of the display view.
FS_PAGESPACING_DIRECTION
Enumeration for page spacing direction.
Definition: FSPDFViewControl.h:116
Definition: FSPDFObjC.h:365
BOOL hasPrevView()
Check if there it is a page view in the preceding of current page view on the page navigation stack.
FSNightColorMode
Definition: FSPDFViewControl.h:140
FSReflowPageFlags
Enumeration for parsing flags used for a reflow page.
Definition: FSPDFObjC.h:5961
Definition: FSPDFObjC.h:6959
@ FSGestureLockOptionPinch
Lock pinch-to-zoom gesture.
Definition: FSPDFViewControl.h:157
The draw event listener.
Definition: FSPDFViewControl.h:503
PDF_LAYOUT_MODE getPageLayoutMode()
Get the page layout mode.
float getReflowPageScale()
Gets the scale at which the reflowpage was generated.
The page event listener.
Definition: FSPDFViewControl.h:255
@ PDF_CERT_ERROR_SUCESSS
Definition: FSPDFViewControl.h:2052
Foxit PDF view control for viewing/editing/saving the PDF file.
Definition: FSPDFViewControl.h:783
The render event listener.
Definition: FSPDFViewControl.h:516
BOOL hasNextView()
Check if there it is a page view next to the current page view on the page navigation stack.
NSTimeInterval minimumPressDuration
Minimum long press interval.
Definition: FSPDFViewControl.h:821
@ PDF_PAGE_STYLE_TYPE_LINED
Insert page lined style.
Definition: FSPDFViewControl.h:131
@ PDF_LAYOUT_MODE_TWO
Facing mode.
Definition: FSPDFViewControl.h:39
Definition: FSPDFObjC.h:408
FSPDFDoc * getDoc()
Get the current PDF document object from view control.
@ FSGestureLockOptionPan
Lock pan gesture.
Definition: FSPDFViewControl.h:159
FSPDFDocUserPermissions
Enumeration for user access permissions in a PDF document.
Definition: FSPDFObjC.h:4860
Definition: FSPDFObjC.h:1590
BOOL enablePageFlippingByTouchBorder
Whether enable page flipping by touch border. Defaults is YES.
Definition: FSPDFViewControl.h:813
NSMutableArray * getVisiblePages()
Get the visible pages in current view control.
@ PDF_PAGE_STYLE_TYPE_BLANK
Insert page blank style.
Definition: FSPDFViewControl.h:129
PDF_PAGE_STYLE_TYPE
Enumeration for page style direction.
Definition: FSPDFViewControl.h:127
@ PDF_CERT_ERROR_PASSWORD
Invalid password.
Definition: FSPDFViewControl.h:2056
Definition: FSPDFViewControl.h:2023
Definition: FSPDFObjC.h:3901
@ FSNightColorModeDefault
Night color mode: defaul.
Definition: FSPDFViewControl.h:142
PDF_LAYOUT_MODE
Enumeration for PDF layout mode.
Definition: FSPDFViewControl.h:33
@ FSNightColorModeMappingGray
Definition: FSPDFViewControl.h:144
void clearAllCacheFile()
Clear all files cached by SDK.
@ PDF_LAYOUT_MODE_UNKNOWN
Unknown page mode.
Definition: FSPDFViewControl.h:35
PDF_CROP_MODE getCropMode()
Get crop mode.
Definition: FSPDFViewControl.h:1898
Definition: FSPDFViewControl.h:2016
PDF_CROP_MODE
Enumeration for page crop mode.
Definition: FSPDFViewControl.h:101
FSGestureLockOptions getLockedOptions()
Retrieves the currently locked options.
@ PDF_DISPLAY_ZOOMMODE_UNKNOWN
Zoom mode: unknown.
Definition: FSPDFViewControl.h:87
void onLayoutFinished()
Triggered when current page layout is finished.
void clearPrevNextStack()
Clear prev and next stack.
UIView * getDisplayView()
Get the display view. PDF pages and page transition effects are displayed on the display view.
void onPageJumped()
Triggered by the page navigation or link jump.
@ PDF_CROP_MODE_DETECTION
Crop margin by detecting paths or images.
Definition: FSPDFViewControl.h:107
FSPDFPageSize
Enumeration for page size type.
Definition: FSPDFObjC.h:5741
Definition: FSPDFViewControl.h:2060
BOOL supportsMultipleScenes
A Boolean value that indicates whether the FSPDFViewCtrl may display multiple scenes simultaneously.
Definition: FSPDFViewControl.h:830
FSNightColorMode nightColorMode
The night color mode.
Definition: FSPDFViewControl.h:819
Definition: FSPDFObjC.h:185
id< FSPDFUIExtensionsManager > extensionsManager
The UI extensions manager. UI extensions manager will implement the UI related features such as annot...
Definition: FSPDFViewControl.h:786
FSErrorCode
Intent: converted result file will be used for printing.
Definition: FSPDFObjC.h:471
BOOL isDynamicXFA()
Whether the current document is dynamic XFA.
@ FSGestureLockOptionNone
Unset, requires a separate value.
Definition: FSPDFViewControl.h:149
int getPageCount()
Get the page count of PDF document.
@ PDF_PAGE_BINDING_LEFT_EDGE
Definition: FSPDFViewControl.h:75
BOOL refreshReflowAnnot
Definition: FSPDFViewControl.h:832
double getHScrollPos()
Get the horizontal scroll position.
@ PDF_PAGE_STYLE_TYPE_GRAPH
Insert page graph style.
Definition: FSPDFViewControl.h:135
@ PDF_CROP_MODE_CUSTOMIZED
Crop margin with specified pages & rects.
Definition: FSPDFViewControl.h:109
int bottomOffset
Get or set position of display view from the bottom of control.
Definition: FSPDFViewControl.h:803
@ PDF_CROP_MODE_CONTENTSBOX
Crop margin according to bounding box of all contents.
Definition: FSPDFViewControl.h:105
The touch event listener.
Definition: FSPDFViewControl.h:573
CGFloat minZoomLimit
The minimum zoom scale.
Definition: FSPDFViewControl.h:811
UIColor * mappingModeBackgroundColor
Background color for FSRendererColorMode::FSRendererColorModeMapping or FSRendererColorMode::FSRender...
Definition: FSPDFViewControl.h:797
@ FSGestureLockOptionSingleTap
Lock single-tap gesture.
Definition: FSPDFViewControl.h:151
float getDisplayViewWidth()
Get the width of the display view.
float getDefaultPageScale()
Get the default page scale.
Definition: FSPDFObjC.h:578
float getUIDevicePPI()
Get the ppi of the current device.
UIScrollView * getPageContainer()
Get the page container.
FSPDFDoc * currentDoc
The current PDF document.
Definition: FSPDFViewControl.h:788
@ PDF_LAYOUT_MODE_TWO_LEFT
Facing mode. Cover page left.
Definition: FSPDFViewControl.h:43
BOOL isContinuous()
Get the page layout mode wether is continuous.
The event listener for pdfview, Some of apple's interfaces
Definition: FSPDFViewControl.h:426
NSString * filePath
The file path of current document, which is from openDoc.
Definition: FSPDFViewControl.h:807
Definition: FSPDFViewControl.h:1946
@ FSGestureLockOptionLongPress
Lock long press gesture.
Definition: FSPDFViewControl.h:155
BOOL isViewSignedDocument()
Get the value wether is view sign history document.
void stopCurrentGestureRecognizerShouldBegin()
Stop the current gesture recognizer immediately.
Definition: FSPDFObjC.h:7614
FSRendererColorMode colorMode
Color mode.
Definition: FSPDFViewControl.h:795
FSRotation
Enumeration for rotation.
Definition: FSPDFObjC.h:606
@ PDF_PAGE_STYLE_TYPE_GRID
Insert page grid style.
Definition: FSPDFViewControl.h:133
@ PDF_LAYOUT_MODE_SINGLE
Single page mode.
Definition: FSPDFViewControl.h:37
UIColor * reflowBackgroundColor
Get or set the background color for reflow mode. Format: 0.0~1.0, 0.0~1.0, 0.0~1.0,...
Definition: FSPDFViewControl.h:801
void lockRefresh()
If page content is currently being edited or annotation is reseting the appearance,...
BOOL isRMSProtected()
Check whether the current document is protected by RMS(Right Management Services).
The page layout event listener.
Definition: FSPDFViewControl.h:353
@ FS_PAGESPACING_VERTICAL
PageSpcaing vertical direction.
Definition: FSPDFViewControl.h:120
void refresh()
Refresh the display view.
CGFloat maxZoomLimit
The maximum zoom scale.
Definition: FSPDFViewControl.h:809
bool isPPDF()
Check if the current document is PPDF format, which is Microsoft Rights Management PDF protected docu...
UIColor * mappingModeForegroundColor
Foreground color for FSRendererColorMode::FSRendererColorModeMapping or FSRendererColorMode::FSRender...
Definition: FSPDFViewControl.h:799
float getScale()
Get the page scale.
int getCurrentPage()
Get current page index.
void refreshOverlay()
Refresh the overlay view.
Definition: FSPDFObjC.h:5968
BOOL fipsMode()
Check that whether the view control works on the FIPS mode (Federal Information Processing Standard)....
Recovery event listener used when view control runs out of memory.
Definition: FSPDFViewControl.h:165
The excecption logger delegate.
Definition: FSPDFViewControl.h:761
FSRendererColorMode
Enumeration for rendering color mode.
Definition: FSPDFObjC.h:1218
FSXFADoc * getXFADoc()
Return XFA document object if the current document is XFA, else return nil.
void unlockRefresh()
Unlock refreshing.
FSPDFDocSaveFlags
Enumeration for PDF document saving flags.
Definition: FSPDFObjC.h:4871
FSPDFPageFlattenOptions
Enumeration for flatten options.
Definition: FSPDFObjC.h:5727
@2025 Foxit Software Incorporated. All rights reserved.