Here's the syntax for the same bookmarks from a PDF app that doesn't use PDFKit:
99 0 obj
<</Type/Outlines/First 100 0 R /Last 102 0 R /Count 3>>
endobj
100 0 obj
<</Title(Page 1)/F 0/C[ 0 0 0]/A 96 0 R /Count 2/Parent 99 0 R /First 101 0 R /Last 101 0 R >>
endobj
101 0 obj
<</Title(Page 2)/F 0/C[ 0 0 0]/A 97 0 R /Count 1/Parent 100 0 R /First 102 0 R /Last 102 0 R >>
endobj
102 0 obj
<</Title(Page 3)/F 0/C[ 0 0 0]/A 98 0 R /Parent 101 0 R >>
endobjEach cild clearly states its Parent, and each Parent has a clear First/Last statement of its children.
Only one object for each bookmark.
The numbers are well ordered.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: