PDFImageOptions
public struct PDFImageOptions : OptionSet, Hashable
Options used to configure the behaviour of PDFImage
Multiple options can be combined by using the OptionSet
operators, i.e. using the array syntax.
Example:
let image = PDFImage(
options: [.resize, .compress]
)
-
nodoc
Declaration
Swift
public let rawValue: Int
-
nodoc
Declaration
Swift
public init(rawValue: Int)
-
Image will be resized to the calculated frame
Declaration
Swift
public static let resize: PDFImageOptions
-
Image will be compressed using the value set in the property
quality
Declaration
Swift
public static let compress: PDFImageOptions
-
Top-left corner of image will be rounded
Declaration
Swift
public static let roundedTopLeft: PDFImageOptions
-
Top-right corner of image will be rounded
Declaration
Swift
public static let roundedTopRight: PDFImageOptions
-
Bottom-right corner of image will be rounded
Declaration
Swift
public static let roundedBottomRight: PDFImageOptions
-
Bottom-left corner of image will be rounded
Declaration
Swift
public static let roundedBottomLeft: PDFImageOptions
-
Short-hand option to round all corners
Declaration
Swift
public static let rounded: PDFImageOptions
-
Disables all options
Declaration
Swift
public static let none: PDFImageOptions