PSPDFConversionOperation


@interface PSPDFConversionOperation : NSOperation

Operation that converts many file formats to PDF. Needs to be executed from a thread. Requires the PSPDFFeatureMaskPDFCreation feature flag.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Input. HTML string to convert to PDF.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull HTMLString;

    Swift

    var htmlString: String { get }
  • Input. Needs to be a file URL.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSURL *_Nonnull inputURL;

    Swift

    var inputURL: URL { get }
  • Output. Needs to be a file URL.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSURL *outputURL;

    Swift

    var outputURL: URL? { get }
  • Output data, if data constructor was used.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSData *outputData;

    Swift

    var outputData: Data? { get }
  • Options set for conversion.

    See

    generatePDFFromURL:outputFileURL:options:completionBlock: for a list of options.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable)
        NSDictionary<NSString *, id> *options;

    Swift

    var options: [String : Any]? { get }
  • Error if something went wrong.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSError *error;

    Swift

    var error: Error? { get }