Skip to content

The bookmark grammar, and the Contents tab - #50

Merged
tannevaled merged 1 commit into
mainfrom
docs/write-the-bookmarks
Nov 9, 2026
Merged

tannevaled merged 1 commit into
mainfrom
docs/write-the-bookmarks

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

ops v0.32.0 lifted the table-of-contents parser out of cmd/pdfops into the library as ParseOutline, and v0.33.0 split the nesting out of it as Nest, so a caller holding entries rather than a file reaches the same code. The operations page showed SetOutline and said nothing about how a table of contents is usually written down before it is a tree — one entry a line, a title, a tab, a page number, two spaces of indent per level — nor that a line it cannot read is an error naming the line.

The workbench page said ten tabs; there are eleven. Contents is the new one: the bookmarks the rail has always shown and the ribbon could only ever drop.

Refs go-pdfkit/ops#76, Refs go-pdfkit/ops#77, Refs go-pdfkit/app#94 — all three merged or open as the code this describes.

🤖 Generated with Claude Code

ops v0.32.0 lifted the table-of-contents parser out of cmd/pdfops into the
library as ParseOutline, and v0.33.0 split the nesting out of it as Nest, so a
caller holding entries rather than a file reaches the same code. The
operations page showed SetOutline and said nothing about how a table of
contents is usually written down before it is a tree.

The workbench page said ten tabs; there are eleven. Contents is the new one:
the bookmarks the rail has always shown and the ribbon could only ever drop.

Covers go-pdfkit/ops#76, go-pdfkit/ops#77 and go-pdfkit/app#94.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit c9583e0 into main Nov 9, 2026
2 checks passed
@tannevaled
tannevaled deleted the docs/write-the-bookmarks branch November 9, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant