GSKPDFImageProcessor
Objective-C
@protocol GSKPDFImageProcessor <NSObject>
Swift
protocol GSKPDFImageProcessor : NSObjectProtocol
Used to preprocess pages of the PDF generation.
When you generate a PDF document from images, you may want to apply some preprocessing to each image before inserting them in the document (for instance resizing them, including a watermark, etc.) You can implement your own PDF_image_processor and pass it when generating a PDF document. to achieve this.
-
Process the image and return a file path to the updated image. The PDF processor will delete this temporary image afterwards (only if it’s different from inputFilePath )
Declaration
Objective-C
- (nullable NSString *)process:(nonnull NSString *)inputFilePath;
Swift
func process(_ inputFilePath: String) -> String?
Return Value
NULL if there is an error