aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2024-02-16 15:09:28 +0100
committerm-holger <m-holger@kubitscheck.org>2024-02-16 15:09:28 +0100
commitf0bc2f11ef4f096b1338dd5fc91e3c4d88b3b9e0 (patch)
tree23967df70526644adcdd8aa7bac79c8a653f22c5 /include
parentc06653c3ab1ec3241b66e708750813a380378fad (diff)
downloadqpdf-f0bc2f11ef4f096b1338dd5fc91e3c4d88b3b9e0.tar.zst
Expose QPDFObjectHandle::writeJSON
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index a965f468..9ea329ff 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -1197,6 +1197,13 @@ class QPDFObjectHandle
QPDF_DLL
JSON getJSON(int json_version, bool dereference_indirect = false);
+ // Write the object encoded as JSON to a pipeline. This is equivalent to, but more efficient
+ // than, calling getJSON(json_version, dereference_indirect).write(p, depth). See the
+ // documentation for getJSON and JSON::write for further detail.
+ QPDF_DLL
+ void
+ writeJSON(int json_version, Pipeline* p, bool dereference_indirect = false, size_t depth = 0);
+
// Deprecated version uses v1 for backward compatibility.
// ABI: remove for qpdf 12
[[deprecated("Use getJSON(int version)")]] QPDF_DLL JSON