// // 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 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