diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-06 17:26:27 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-06 17:27:02 +0100 |
commit | 6a2456f732ed31e3eaba48ea80979cc104b2655e (patch) | |
tree | 96b038b3443d2ee0430a77a55397bf060ce938fb /include | |
parent | 5901fcad4c33b6058569e93ec9eeaa12cc880469 (diff) | |
download | qpdf-6a2456f732ed31e3eaba48ea80979cc104b2655e.tar.zst |
Comment, ChangeLog, release note for new contribution
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 3 |
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 |