From 3e20bbde35d65ffe1c6d47d2e308d8091f02cb0e Mon Sep 17 00:00:00 2001 From: "Trevor L. Davis" Date: Sun, 15 Mar 2026 12:30:30 -0700 Subject: [PATCH] pdf_toc: Now returns if bookmarks are open (#117) --- NEWS | 3 +++ src/bindings.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index fcaddb6..a4442b6 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +development + - pdf_toc() now also returns if bookmarks are open (#117) + 3.7.0 - Switch some deprecated fields to new ones diff --git a/src/bindings.cpp b/src/bindings.cpp index f44de90..1a462e3 100644 --- a/src/bindings.cpp +++ b/src/bindings.cpp @@ -81,6 +81,7 @@ static List item_to_list(toc_item *item){ } return List::create( _["title"] = ustring_to_r(item->title()), + _["is_open"] = item->is_open(), _["children"] = out ); }