PDFTable
public class PDFTable : PDFJSONSerializable
A table is a two dimensional list. It can be styled and can contain different data:
-
-
Styling used for drawing
Declaration
Swift
public var style: PDFTableStyle
-
All cell data
Declaration
Swift
public var cells: [[PDFTableCell]]
-
List of relative widths. Values are between 0.0 and 1.0 and should sum up to 1.0
Declaration
Swift
public var widths: [CGFloat]
-
Padding is the distance between the cell content and its borders.
Declaration
Swift
public var padding: CGFloat
-
Margin is the distance between the cell borders and other cells
Declaration
Swift
public var margin: CGFloat
-
Header rows will be drawn on every page
Declaration
Swift
public var showHeadersOnEveryPage: Bool
-
Public initalizer to create a table outside framework
Declaration
Swift
public init()
-
Generates cells from given
data
andalignments
and stores the result in the instance variablecells
Declaration
Swift
public func generateCells(data: [[Any?]], alignments: [[PDFTableCellAlignment]]) throws
-
Modify the cell style of at the position defined by
row
andcolumn
Declaration
Swift
public func setCellStyle(row rowIndex: Int, column columnIndex: Int, style cellStyle: PDFTableCellStyle?) throws
-
Declaration
Swift
public static func == (lhs: PDFTable, rhs: PDFTable) -> Bool