Initializer

init()

Initializes a PDFOutline object.

Declaration

init()

Discussion

If you want the PDFOutline object returned by this method to be the outline root, you must add additional PDFOutline objects to create the outline hierarchy you desire. Then, you must add the root outline object to your PDF document by passing it to the PDFDocument setOutlineRoot(_:) method.

If you want the PDFOutline object returned by this method to be a child of an existing outline, you must use setLabel(_:) to give it a label and give it either a destination or action using setDestination(_:) or setAction(_:), respectively. In addition, you must add this outline object to the existing PDFOutline object as a new child, using insertChild(_:at:)