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 and alignments and stores the result in the instance variable cells

    Throws

    PDFError if table validation fails. See PDFTableValidator.validateTableData(::) for details

    Declaration

    Swift

    public func generateCells(data: [[Any?]], alignments: [[PDFTableCellAlignment]]) throws
  • Modify the cell style of at the position defined by row and column

    Declaration

    Swift

    public func setCellStyle(row rowIndex: Int, column columnIndex: Int, style cellStyle: PDFTableCellStyle?) throws
  • TODO: Documentation

    Declaration

    Swift

    public static func == (lhs: PDFTable, rhs: PDFTable) -> Bool