PTCallback
@interface PTCallback : NSObject
SWIG director's base class
Contains virtual functions which match the signature of the PDFNet function pointers.
Each virtual function has a matching static function calling it. User extends this class in the target language and overrides the function of interest. The static function is assigned to the function pointer.
-
Undocumented
Declaration
Objective-C
- (void)RenderBeginEventProc;
Swift
func renderBeginEventProc()
-
Undocumented
Declaration
Objective-C
+ (void)StaticRenderBeginEventProc: (void *)data;
Swift
class func staticRenderBeginEventProc(_ data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)RenderFinishEventProc: (BOOL)cancelled;
Swift
func renderFinishEventProc(_ cancelled: Bool)
-
Undocumented
Declaration
Objective-C
+ (void)StaticRenderFinishEventProc: (void *)data cancelled: (BOOL)cancelled;
Swift
class func staticRenderFinishEventProc(_ data: UnsafeMutableRawPointer!, cancelled: Bool)
-
Undocumented
Declaration
Objective-C
- (void)ErrorReportProc: (NSString *)message;
Swift
func errorReportProc(_ message: String!)
-
Undocumented
Declaration
Objective-C
+ (void)StaticErrorReportProc: (NSString *)message data: (void *)data;
Swift
class func staticErrorReportProc(_ message: String!, data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)CurrentPageProc: (int)current_page num_pages: (int)num_pages;
Swift
func currentPageProc(_ current_page: Int32, num_pages: Int32)
-
Undocumented
Declaration
Objective-C
+ (void)StaticCurrentPageProc: (int)current_page num_pages: (int)num_pages data: (void *)data;
Swift
class func staticCurrentPageProc(_ current_page: Int32, num_pages: Int32, data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)JavaScriptEventProc: (NSString *)event_type json: (NSString *)json;
Swift
func javaScriptEventProc(_ event_type: String!, json: String!)
-
Undocumented
Declaration
Objective-C
+ (void)StaticJavaScriptEventProc: (NSString *)event_type json: (NSString *)json data: (void *)data;
Swift
class func staticJavaScriptEventProc(_ event_type: String!, json: String!, data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)CurrentZoomProc: (double)curr_zoom_proc;
Swift
func currentZoomProc(_ curr_zoom_proc: Double)
-
Undocumented
Declaration
Objective-C
+ (void)StaticCurrentZoomProc: (double)curr_zoom_proc data: (void *)data;
Swift
class func staticCurrentZoomProc(_ curr_zoom_proc: Double, data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)ConnectionErrorProc: (NSString *)message error_code: (int)error_code switch_to_demo: (unsigned char)switch_to_demo;
Swift
func connectionErrorProc(_ message: String!, error_code: Int32, switch_to_demo: UInt8)
-
Undocumented
Declaration
Objective-C
+ (void)StaticConnectionErrorProc: (NSString *)message error_code: (int)error_code switch_to_demo: (unsigned char)switch_to_demo data: (void *)data;
Swift
class func staticConnectionErrorProc(_ message: String!, error_code: Int32, switch_to_demo: UInt8, data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)ThumbAsyncHandler: (int)page_num was_thumb_found: (BOOL)was_thumb_found thumb_buf: (NSString *)thumb_buf thumb_width: (int)thumb_width thumb_height: (int)thumb_height;
Swift
func thumbAsyncHandler(_ page_num: Int32, was_thumb_found: Bool, thumb_buf: String!, thumb_width: Int32, thumb_height: Int32)
-
Undocumented
Declaration
Objective-C
+ (void)StaticThumbAsyncHandler: (int)page_num was_thumb_found: (BOOL)was_thumb_found thumb_buf: (NSString *)thumb_buf thumb_width: (int)thumb_width thumb_height: (int)thumb_height custom_data: (void *)custom_data;
Swift
class func staticThumbAsyncHandler(_ page_num: Int32, was_thumb_found: Bool, thumb_buf: String!, thumb_width: Int32, thumb_height: Int32, custom_data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)RequestRenderInWorkerThread;
Swift
func requestRenderInWorkerThread()
-
Undocumented
Declaration
Objective-C
+ (void)StaticRequestRenderInWorkerThread: (void *)custom_data;
Swift
class func staticRequestRender(inWorkerThread custom_data: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void)FindTextHandler: (BOOL)success selection: (PTSelection*)selection;
Swift
func findTextHandler(_ success: Bool, selection: PTSelection!)
-
Undocumented
Declaration
Objective-C
+ (void)StaticFindTextHandler: (BOOL)success selection: (PTSelection*)selection custom_data: (void *)custom_data;
Swift
class func staticFindTextHandler(_ success: Bool, selection: PTSelection!, custom_data: UnsafeMutableRawPointer!)
-
-CreateTileProc:originX:originY:width:height:pagNum:cellNumber:finalRender:predictionRender:tilesRemaining:firstTile:canvasWidth:canvasHeight:cellSideLength:cellPerRow:cellPerCol:thumbnailId:
Undocumented
Declaration
Objective-C
- (void)CreateTileProc: (NSString *)buffer originX: (int)originX originY: (int)originY width: (int)width height: (int)height pagNum: (int)pagNum cellNumber: (long long)cellNumber finalRender: (BOOL)finalRender predictionRender: (BOOL)predictionRender tilesRemaining: (int)tilesRemaining firstTile: (BOOL)firstTile canvasWidth: (int)canvasWidth canvasHeight: (int)canvasHeight cellSideLength: (int)cellSideLength cellPerRow: (int)cellPerRow cellPerCol: (int)cellPerCol thumbnailId: (int)thumbnailId;
Swift
func createTileProc(_ buffer: String!, originX: Int32, originY: Int32, width: Int32, height: Int32, pagNum: Int32, cellNumber: Int64, finalRender: Bool, predictionRender: Bool, tilesRemaining: Int32, firstTile: Bool, canvasWidth: Int32, canvasHeight: Int32, cellSideLength: Int32, cellPerRow: Int32, cellPerCol: Int32, thumbnailId: Int32)
-
+StaticCreateTileProc:buffer:originX:originY:width:height:pageNum:cellNumber:finalRender:predictionRender:tilesRemaining:firstTile:canvasWidth:canvasHeight:cellSideLength:cellPerRow:cellPerCol:thumbnailId:
Undocumented
Declaration
Objective-C
+ (void)StaticCreateTileProc: (void *)customData buffer: (NSString *)buffer originX: (int)originX originY: (int)originY width: (int)width height: (int)height pageNum: (int)pageNum cellNumber: (long long)cellNumber finalRender: (BOOL)finalRender predictionRender: (BOOL)predictionRender tilesRemaining: (int)tilesRemaining firstTile: (BOOL)firstTile canvasWidth: (int)canvasWidth canvasHeight: (int)canvasHeight cellSideLength: (int)cellSideLength cellPerRow: (int)cellPerRow cellPerCol: (int)cellPerCol thumbnailId: (int)thumbnailId;
Swift
class func staticCreateTileProc(_ customData: UnsafeMutableRawPointer!, buffer: String!, originX: Int32, originY: Int32, width: Int32, height: Int32, pageNum: Int32, cellNumber: Int64, finalRender: Bool, predictionRender: Bool, tilesRemaining: Int32, firstTile: Bool, canvasWidth: Int32, canvasHeight: Int32, cellSideLength: Int32, cellPerRow: Int32, cellPerCol: Int32, thumbnailId: Int32)
-
-AnnotBitmapProc:buffer:width:height:stride:page_num:annot_index:annot_key:x_in_page:y_in_page:x_offset:y_offset:remaining_tiles:sequence_number:x_page_size:y_page_size:
Undocumented
Declaration
Objective-C
- (void)AnnotBitmapProc: (int)operation_type buffer: (NSString *)buffer width: (unsigned int)width height: (unsigned int)height stride: (unsigned int)stride page_num: (unsigned int)page_num annot_index: (unsigned int)annot_index annot_key: (void *)annot_key x_in_page: (long long)x_in_page y_in_page: (long long)y_in_page x_offset: (int)x_offset y_offset: (int)y_offset remaining_tiles: (int)remaining_tiles sequence_number: (int)sequence_number x_page_size: (long long)x_page_size y_page_size: (long long)y_page_size;
Swift
func annotBitmapProc(_ operation_type: Int32, buffer: String!, width: UInt32, height: UInt32, stride: UInt32, page_num: UInt32, annot_index: UInt32, annot_key: UnsafeMutableRawPointer!, x_in_page: Int64, y_in_page: Int64, x_offset: Int32, y_offset: Int32, remaining_tiles: Int32, sequence_number: Int32, x_page_size: Int64, y_page_size: Int64)
-
+StaticAnnotBitmapProc:operation_type:buffer:width:height:stride:page_num:annot_index:annot_key:x_in_page:y_in_page:x_offset:y_offset:remaining_tiles:sequence_number:x_page_size:y_page_size:
Undocumented
Declaration
Objective-C
+ (void)StaticAnnotBitmapProc: (void *)me operation_type: (int)operation_type buffer: (NSString *)buffer width: (unsigned int)width height: (unsigned int)height stride: (unsigned int)stride page_num: (unsigned int)page_num annot_index: (unsigned int)annot_index annot_key: (void *)annot_key x_in_page: (long long)x_in_page y_in_page: (long long)y_in_page x_offset: (int)x_offset y_offset: (int)y_offset remaining_tiles: (int)remaining_tiles sequence_number: (int)sequence_number x_page_size: (long long)x_page_size y_page_size: (long long)y_page_size;
Swift
class func staticAnnotBitmapProc(_ me: UnsafeMutableRawPointer!, operation_type: Int32, buffer: String!, width: UInt32, height: UInt32, stride: UInt32, page_num: UInt32, annot_index: UInt32, annot_key: UnsafeMutableRawPointer!, x_in_page: Int64, y_in_page: Int64, x_offset: Int32, y_offset: Int32, remaining_tiles: Int32, sequence_number: Int32, x_page_size: Int64, y_page_size: Int64)
-
-DeluxeCreateTileProc:width:height:stride:page_num:x_page_loc:y_page_loc:zoomed_page_width:zoomed_page_height:tile_id:x_in_page:y_in_page:canvas_id:remaining_tiles:tile_type:sequence_number:
deluxe start
Declaration
Objective-C
- (void)DeluxeCreateTileProc:(NSString *)buffer width:(unsigned int)width height:(unsigned int)height stride:(unsigned int)stride page_num:(unsigned int)page_num x_page_loc:(unsigned long long)x_page_loc y_page_loc:(unsigned long long)y_page_loc zoomed_page_width:(unsigned int)zoomed_page_width zoomed_page_height:(unsigned int)zoomed_page_height tile_id:(unsigned int)tile_id x_in_page:(unsigned int)x_in_page y_in_page:(unsigned int)y_in_page canvas_id:(int)canvas_id remaining_tiles:(int)remaining_tiles tile_type:(int)tile_type sequence_number:(int)sequence_number;
Swift
func deluxeCreateTileProc(_ buffer: String!, width: UInt32, height: UInt32, stride: UInt32, page_num: UInt32, x_page_loc: UInt64, y_page_loc: UInt64, zoomed_page_width: UInt32, zoomed_page_height: UInt32, tile_id: UInt32, x_in_page: UInt32, y_in_page: UInt32, canvas_id: Int32, remaining_tiles: Int32, tile_type: Int32, sequence_number: Int32)
-
+StaticDeluxeCreateTileProc:buffer:width:height:stride:page_num:x_page_loc:y_page_loc:zoomed_page_width:zoomed_page_height:tile_id:x_in_page:y_in_page:canvas_id:remaining_tiles:tile_type:sequence_number:
Undocumented
Declaration
Objective-C
+ (void)StaticDeluxeCreateTileProc: (void *)me buffer: (NSString *)buffer width: (unsigned int)width height: (unsigned int)height stride: (unsigned int)stride page_num: (unsigned int)page_num x_page_loc: (unsigned long long)x_page_loc y_page_loc: (unsigned long long)y_page_loc zoomed_page_width: (unsigned int)zoomed_page_width zoomed_page_height: (unsigned int)zoomed_page_height tile_id: (unsigned int)tile_id x_in_page: (unsigned int)x_in_page y_in_page: (unsigned int)y_in_page canvas_id: (int)canvas_id remaining_tiles: (int)remaining_tiles tile_type: (int)tile_type sequence_number: (int)sequence_number;
Swift
class func staticDeluxeCreateTileProc(_ me: UnsafeMutableRawPointer!, buffer: String!, width: UInt32, height: UInt32, stride: UInt32, page_num: UInt32, x_page_loc: UInt64, y_page_loc: UInt64, zoomed_page_width: UInt32, zoomed_page_height: UInt32, tile_id: UInt32, x_in_page: UInt32, y_in_page: UInt32, canvas_id: Int32, remaining_tiles: Int32, tile_type: Int32, sequence_number: Int32)
-
deluxe end
Declaration
Objective-C
- (void)RemoveTileProc:(int)canvasNumber cellNumber:(long long)cellNumber thumbnailId:(int)thumbnailId sequenceNumber:(int)sequenceNumber;
Swift
func removeTileProc(_ canvasNumber: Int32, cellNumber: Int64, thumbnailId: Int32, sequenceNumber: Int32)
-
Undocumented
Declaration
Objective-C
+ (void)StaticRemoveTileProc: (void *)customData canvasNumber: (int)canvasNumber cellNumber: (long long)cellNumber thumbnailId: (int)thumbnailId sequenceNumber: (int)sequenceNumber;
Swift
class func staticRemoveTileProc(_ customData: UnsafeMutableRawPointer!, canvasNumber: Int32, cellNumber: Int64, thumbnailId: Int32, sequenceNumber: Int32)
-
Undocumented
Declaration
Objective-C
- (void)PartDownloadedProc: (int)dlType doc: (void *)doc pageNum: (unsigned int)pageNum objNum: (unsigned int)objNum message: (NSString *)message;
Swift
func partDownloadedProc(_ dlType: Int32, doc: UnsafeMutableRawPointer!, pageNum: UInt32, objNum: UInt32, message: String!)
-
Undocumented
Declaration
Objective-C
+ (void)StaticPartDownloadedProc: (int)dlType doc: (void *)doc pageNum: (unsigned int)pageNum objNum: (unsigned int)objNum message: (NSString *)message customData: (void *)customData;
Swift
class func staticPartDownloadedProc(_ dlType: Int32, doc: UnsafeMutableRawPointer!, pageNum: UInt32, objNum: UInt32, message: String!, customData: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()