I am trying to use the NodeJS PDF library to add a bookmark to a file. I am confused by what bookmarkPath is. Let’s say I wanted to add a bookmark on page 5 of a document in my default storage called “test.pdf”. What would this attribute be?
When I put a page number in as the bookmarkPath value, I get this:
Invalid index: index should be in the range [1..n] where n equals to the bookmarks count.
So what does bookmarkPath mean, and what value do I need to insert?