Skip to content

The printed table of contents, in the library and on the ribbon - #53

Merged
tannevaled merged 1 commit into
mainfrom
docs/a-printed-contents
Nov 9, 2026
Merged

tannevaled merged 1 commit into
mainfrom
docs/a-printed-contents

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

docs: the printed table of contents, in the library and on the ribbon

ops v0.34.0 writes the other kind of table of contents -- the one that gets
printed, a page with a line for each entry and its page number at the right --
and app v0.43.0 puts it on the Contents tab. Both pages said only how the
/Outlines tree is written.

With the rule that makes the numbers right: a contents page in front of a
document pushes every page of it down, so ContentsPage returns how many pages
it added and ShiftBookmarks is the same rule for the tree, edge and all.

Covers go-pdfkit/ops#78 and go-pdfkit/app#98.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

ops v0.34.0 writes the other kind of table of contents -- the one that gets
printed, a page with a line for each entry and its page number at the right --
and app v0.43.0 puts it on the Contents tab. Both pages said only how the
/Outlines tree is written.

With the rule that makes the numbers right: a contents page in front of a
document pushes every page of it down, so ContentsPage returns how many pages
it added and ShiftBookmarks is the same rule for the tree, edge and all.

Covers go-pdfkit/ops#78 and go-pdfkit/app#98.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 5833964 into main Nov 9, 2026
2 checks passed
@tannevaled
tannevaled deleted the docs/a-printed-contents branch November 9, 2026 11:44
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