1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- //
- // CPDFKit.h
- // ComPDFKit
- //
- // Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
- //
- // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
- // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
- // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
- // This notice may not be removed from this file.
- //
- #import <Foundation/Foundation.h>
- typedef NS_ENUM(NSInteger, CPDFKitFeatureType) {
- CPDFKitFeatureViewerOutline,
- CPDFKitFeatureViewerBookmark,
- CPDFKitFeatureViewerRender,
- CPDFKitFeatureViewerSearch,
- CPDFKitFeatureAnnotationNote,
- CPDFKitFeatureAnnotationLink,
- CPDFKitFeatureAnnotationFreeText,
- CPDFKitFeatureAnnotationShape,
- CPDFKitFeatureAnnotationMarkup,
- CPDFKitFeatureAnnotationStandardStamp,
- CPDFKitFeatureAnnotationCustomizedStamp,
- CPDFKitFeatureAnnotationInk,
- CPDFKitFeatureAnnotationSound,
- CPDFKitFeatureAnnotationDelete,
- CPDFKitFeatureAnnotationFlatten,
- CPDFKitFeatureAnnotationXFDF,
- CPDFKitFeatureForm,
- CPDFKitFeatureFormFill,
- CPDFKitFeatureEditorPage,
- CPDFKitFeatureEditorExtract,
- CPDFKitFeatureEditorInfo,
- CPDFKitFeatureEditorConvert,
- CPDFKitFeatureSecurityEncrypt,
- CPDFKitFeatureSecurityDecrypt,
- CPDFKitFeatureSecurityWatermark,
- CPDFKitFeatureConversionPDFA
- };
- @interface CPDFKit : NSObject
- /**
- * The shared ComPDFKit instance.
- */
- + (instancetype)sharedInstance;
- /**
- * Activate ComPDFKit with your license key and secret.
- */
- + (void)setLicenseKey:(NSString *)licenseKey secret:(NSString *)licenseSecret;
- /**
- * Returns the full ComPDFKit product version string. (e.g. "ComPDFKit 1.0.1 for iOS (101)")
- */
- @property(atomic,readonly) NSString *versionString;
- /**
- * Returns just the framework version. (e.g. 1.0.1)
- */
- @property(atomic,readonly) NSString *versionNumber;
- /**
- * The internal build number. Increments with every version.
- */
- @property(atomic,readonly) NSUInteger buildNumber;
- /**
- * Whether to allow to use specified features.
- *
- * @see CPDFKitFeatureType
- */
- - (BOOL)allowsFeature:(CPDFKitFeatureType)type;
- /**
- * Convert files (doc, docx, xls, xlsx, ppt, pptx, txt, jpeg, and png) to PDF.
- */
- - (void)convertFilePath:(NSString *)filePath toPath:(NSString *)pdfFilePath completion:(void (^)(BOOL result))completion;
- @end
|