julianhille / MuhammaraJS

Muhammara a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs)
Other
205 stars 41 forks source link

How to parse outlines (bookmarks) ? #370

Open scrollbar-ww opened 5 months ago

scrollbar-ww commented 5 months ago

I wanna parse outlines (bookmarks) structure from an existing PDF file, and convert to json like this:

{
    "outlines": [
        {
            "title": "title",
            "dest": 1 // page number,
            "children": [] 
        }
    ]
}

How can i do ? thanks !