GSKPDFGeneratorConfiguration
Objective-C
@interface GSKPDFGeneratorConfiguration : NSObject
Swift
class GSKPDFGeneratorConfiguration : NSObject
A configuration for the PDF generator
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithFontPath:(nullable NSString *)fontPath iccProfilePath:(nullable NSString *)iccProfilePath debug:(BOOL)debug;
Swift
init(fontPath: String?, iccProfilePath: String?, debug: Bool)
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)PDFGeneratorConfigurationWithFontPath:(nullable NSString *)fontPath iccProfilePath:(nullable NSString *)iccProfilePath debug:(BOOL)debug;
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString * fontPath
Swift
var fontPath: String? { get }
-
An ICC profile file that will be configured on the PDF file. This is needed to have PDF/A compliance. It’s a RGB profile so that it supports any RGB or Grayscale image.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *iccProfilePath;
Swift
var iccProfilePath: String? { get }
-
If true, OCR'ed text will visible on the PDF. Defaults to false
Declaration
Objective-C
@property (nonatomic, readonly) BOOL debug;
Swift
var debug: Bool { get }
-
A configuration with the specified font path. This configuration will generate a PDF/A-1 with a default ICC profile. If you don’t want a PDF/A-1, use
initWithFontPath:iccProfilePath:
and passnil
for the ICC profile path.Declaration
Objective-C
- (nonnull instancetype)initWithFontPath:(NSString *_Nullable)fontPath;
Swift
init(fontPath: String?)