Docs

POST /v1/pdf/bookmarks

Use POST /v1/pdf/bookmarks to add a clickable outline (table of contents) to an existing PDF. Typical after a merge or Office convert.

Provide source (url or file) and bookmark entries.

Fields

bookmarks is an array of { title, page } with page as 1-indexed integer. Encrypted PDFs accept password.

Example

Add two bookmarks.

POST /v1/pdf/bookmarks
{
  "url": "https://example.com/report.pdf",
  "bookmarks": [
    { "title": "Cover", "page": 1 },
    { "title": "Appendix", "page": 4 }
  ]
}