aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 59e58544..adb3fdd9 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -810,6 +810,9 @@ class QPDFObjectHandle
// returned.
QPDF_DLL
QPDFObjectHandle getKey(std::string const&);
+ // If the object is null, return null. Otherwise, call getKey().
+ // This makes it easier to access lower-level dictionaries, as in
+ // auto font = page.getKeyIfDict("/Resources").getKeyIfDict("/Font");
QPDF_DLL
QPDFObjectHandle getKeyIfDict(std::string const&);
// Return all keys. Keys with null values are treated as if