I have been able to add one or more bookmarks to a PDF document using the POST method, but I have been unable to add a nested bookmark to a second level. For example:
Bookmark 1: Header
Bookmark 2: Header
Bookmark 2/1: sub header (This is what I can’t make work)
[
{
“Links”: [
{
“Href”: “/test.pdf/bookmarks/bookmark/1”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
],
“Title”: “Test with Levels”,
“Italic”: true,
“Bold”: true,
“Color”: {
“A”: 0,
“R”: 0,
“G”: 0,
“B”: 0
},
“Action”: “GoTo”,
“Level”: 1,
“Destination”: “3”,
“PageDisplay”: “Fit”,
“PageDisplay_Bottom”: 0,
“PageDisplay_Left”: 0,
“PageDisplay_Right”: 0,
“PageDisplay_Top”: 0,
“PageDisplay_Zoom”: 0,
“PageNumber”: 3,
“RemoteFile”: null,
“Bookmarks”: {
“Links”: [
{
“Href”: “/test.pdf/bookmarks/bookmark/1”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
],
“List”: [
null
]
}
},
{
“Links”: [
{
“Href”: “/test.pdf/bookmarks/bookmark/2”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
],
“Title”: “2. Test with Levels”,
“Italic”: true,
“Bold”: true,
“Color”: {
“A”: 0,
“R”: 0,
“G”: 0,
“B”: 0
},
“Action”: “GoTo”,
“Level”: 1,
“Destination”: “5”,
“PageDisplay”: “Fit”,
“PageDisplay_Bottom”: 0,
“PageDisplay_Left”: 0,
“PageDisplay_Right”: 0,
“PageDisplay_Top”: 0,
“PageDisplay_Zoom”: 0,
“PageNumber”: 5,
“RemoteFile”: null,
“Bookmarks”: {
“Links”: [
{
“Href”: “/test.pdf/bookmarks/bookmark/2”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
],
“List”: [
{
“Links”: [
{
“Href”: “/test.pdf/bookmarks/bookmark/2/1”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
],
“Title”: “1. Resume”,
“Italic”: true,
“Bold”: true,
“Color”: {
“A”: 0,
“R”: 0,
“G”: 0,
“B”: 0
},
“Action”: “GoTo”,
“Level”: 2,
“Destination”: “8”,
“PageDisplay”: “Fit”,
“PageDisplay_Bottom”: 0,
“PageDisplay_Left”: 0,
“PageDisplay_Right”: 0,
“PageDisplay_Top”: 0,
“PageDisplay_Zoom”: 0,
“PageNumber”: 8,
“RemoteFile”: null,
“Bookmarks”: {
“Links”: [
{
“Href”: “/test.pdf/bookmarks/bookmark/2/1”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
],
“List”: [
null
]
}
}
]
}
}
]