Skip to content

feat(outline): add pageNumber option and XYZ destination support#1674

Merged
blikblum merged 2 commits intofoliojs:masterfrom
exoego:feat-outline-page-number
Jan 26, 2026
Merged

feat(outline): add pageNumber option and XYZ destination support#1674
blikblum merged 2 commits intofoliojs:masterfrom
exoego:feat-outline-page-number

Conversation

@exoego
Copy link
Copy Markdown
Contributor

@exoego exoego commented Jan 25, 2026

What kind of change does this PR introduce?

This PR enables creating outlines that jump to specific page positions with custom zoom level

  • pageNumber
    • null: Link to the current page (default)
    • given: Link to a specific page by index
  • fit
    • true: Use Fit destination (fit entire page in window)
    • false: Use XYZ destination (custom position and zoom)

Context:

Checklist:

  • Unit Tests
  • Documentation
  • Update CHANGELOG.md
  • Ready to be merged

@exoego exoego force-pushed the feat-outline-page-number branch 2 times, most recently from 335eda9 to 835912c Compare January 25, 2026 11:02
@blikblum
Copy link
Copy Markdown
Member

Please fix the conflicts

@exoego exoego force-pushed the feat-outline-page-number branch from 835912c to 760c31a Compare January 26, 2026 00:48
@blikblum blikblum merged commit 171042a into foliojs:master Jan 26, 2026
3 checks passed
@exoego exoego deleted the feat-outline-page-number branch January 26, 2026 02:40
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.

Move Or Focus on existing pdf using X,Y Coordinates.

2 participants