Read the bookmarks
Reads the bookmarks, the outline viewers show beside the pages.
POST/forms/pdf/bookmarks
Form data
Response
JSON, one entry per PDF under its file name.
The route answers directly: it ignores Gotenberg-Output-Filename, and answers 400 to the webhook headers. An error answers a status and a message: see Errors.
curl \
--request POST http://localhost:3000/forms/pdf/bookmarks \
--form files=@report.pdf
Response
{
"report.pdf": [
{
"title": "Summary",
"pageNumber": 1,
"children": [
{
"title": "Figures",
"pageNumber": 2
}
]
},
{
"title": "Appendix",
"pageNumber": 3
}
]
}
children nests bookmarks under another. The shape is the one set-bookmarks takes.