GSKTIFF

Objective-C

@interface GSKTIFF : NSObject

Swift

class GSKTIFF : NSObject

GSKTIFF encapsulate the generation of a TIFF document.

  • Write the given TIFF document to the specified file path.

    This method will take some time, proportionally to the number of pages of the TIFF document.

    Declaration

    Objective-C

    + (BOOL)generateTIFFDocument:(nonnull GSKPDFDocument *)document
                          toPath:(nonnull NSString *)filePath
                           error:(NSError *_Nullable *_Nullable)error;

    Swift

    class func generate(_ document: GSKPDFDocument, toPath filePath: String) throws

    Parameters

    document

    The TIFF document.

    filePath

    The file path to write the TIFF to.

    error

    On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.

    Return Value

    YES if the TIFF was generated successfully, NO if an error occured.