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