TOCItem
class TOCItem: PDFElement
A PDF TOC item element
-
Information about the item
-
The
PageCounter
classDeclaration
Swift
var counter: PDFBuild.PageCounter
-
Init the TOC item element
Declaration
Swift
init(tocInfo: PDFBuild.TOCInfo, counter: PDFBuild.PageCounter)
Parameters
tocInfo
Information about the item
counter
The
PageCounter
class -
Draw the TOC item element
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)
Parameters
rect
The available rectangle
calculationOnly
Bool if only the Bounding Rect should be calculated
pageRect
The page size of the PDF document