PDFPagination
public struct PDFPagination
extension PDFPagination: Equatable
Structure used to configure the pagination
-
Container where the pagination will be placed
Declaration
Swift
public var container: PDFContainer -
Style of the pagination
Declaration
Swift
public var style: PDFPaginationStyle -
Range of pages which will be paginated
This range starts at zero
Declaration
Swift
public var range: (start: Int, end: Int) -
Add a page number to this list to exclude it from the pagination
This will not skip the page but instead not render the pagination object
Declaration
Swift
public var hiddenPages: [Int] -
Text attribtues are used to create the attributed pagination string
See
NSAttributedStringfor referenceDeclaration
Swift
public var textAttributes: [NSAttributedString.Key : Any] -
Creates a new pagination configuration
- Parameters;
- container: Container where pagination is placed, defaults to
PDFContainer.none, meaning it won’t be rendered - style: Style of pagination
- range: Start and end of pages which will be included
- hiddenPages: List of numbers which are excluded from rendering
- container: Container where pagination is placed, defaults to
Declaration
Swift
public init( container: PDFContainer = .none, style: PDFPaginationStyle = .default, range: (start: Int, end: Int) = (0, Int.max), hiddenPages: [Int] = [], textAttributes: [NSAttributedString.Key: Any] = [:] ) - Parameters;
-
nodoc
Declaration
Swift
public static func == (lhs: PDFPagination, rhs: PDFPagination) -> Bool
View on GitHub
Install in Dash