GSKPDFDocument
Objective-C
@interface GSKPDFDocument : NSObject
Swift
class GSKPDFDocument : NSObject
Describes the structure of a PDF document for the PDF generator.
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithTitle:(nullable NSString *)title password:(nullable NSString *)password keywords:(nullable NSString *)keywords creationDate:(nullable NSDate *)creationDate lastUpdateDate:(nullable NSDate *)lastUpdateDate pages:(nonnull NSArray<GSKPDFPage *> *)pages;
Swift
init(title: String?, password: String?, keywords: String?, creationDate: Date?, lastUpdate lastUpdateDate: Date?, pages: [GSKPDFPage])
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)PDFDocumentWithTitle:(nullable NSString *)title password:(nullable NSString *)password keywords:(nullable NSString *)keywords creationDate:(nullable NSDate *)creationDate lastUpdateDate:(nullable NSDate *)lastUpdateDate pages:(nonnull NSArray<GSKPDFPage *> *)pages;
-
If provided, this title will be included in the PDF document properties
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *title;
Swift
var title: String? { get }
-
If provided, this password will be used to protect the PDF document. It will need to be entered to view or edit the document. RC4 encryption algorithm is used with a 128-bit key.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *password;
Swift
var password: String? { get }
-
If provided, the keywords will be included in the PDF document properties
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *keywords;
Swift
var keywords: String? { get }
-
If provided, this date will be included in the PDF document properties
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *creationDate;
Swift
var creationDate: Date? { get }
-
If provided, this date will be included in the PDF document properties
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *lastUpdateDate;
Swift
var lastUpdateDate: Date? { get }
-
List of pages that will be included in the PDF document
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSArray<GSKPDFPage *> *pages;
Swift
var pages: [GSKPDFPage] { get }