Instance Method


Inserts the specified outline object at the specified index.


func insertChild(_ child: PDFOutline, at index: Int)


To build a PDF outline hierarchy, use this method to add child outline objects. Before you call this method on a PDFOutline object that already has a parent, you should retain the object and call removeFromParent() on it first.

See Also

Changing an Outline Hierarchy

func removeFromParent()

Removes the outline object from its parent (does nothing if outline object is the root outline object).