ContentItem
class ContentItem: PDFElement
A PDF content item element
This element is not drawing anything but stores item information in the PageCounter class for creating a TOC
- Store the first page number of the item
-
Information about the item
Declaration
Swift
let tocInfo: TOCInfo -
The
PageCounterclassDeclaration
Swift
let counter: PDFBuild.PageCounter -
Init the content item element
Declaration
Swift
init(tocInfo: TOCInfo, counter: PDFBuild.PageCounter)Parameters
tocInfoInformation about the item
counterThe
PageCounterclass -
Draw the item section element
Note
This is not drawing anything but storing item information in thePageCounterclass for creating a TOCDeclaration
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