aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-12-10 20:57:11 +0100
committerJay Berkenbilt <ejb@ql.org>2021-12-10 20:57:35 +0100
commit1c62c2a3427e92846ddaaae44f864022b2aade4f (patch)
treefd4d89ad177dcdc170f764637cafcdda5f849bde /include
parent8e0b15333228ab973571eec498af41d3cbb8ab63 (diff)
downloadqpdf-1c62c2a3427e92846ddaaae44f864022b2aade4f.tar.zst
C API: expose functions for indirect objects (fixes #588)
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/qpdf-c.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qpdf/qpdf-c.h b/include/qpdf/qpdf-c.h
index 90219123..fc393152 100644
--- a/include/qpdf/qpdf-c.h
+++ b/include/qpdf/qpdf-c.h
@@ -618,6 +618,15 @@ extern "C" {
QPDF_DLL
qpdf_oh qpdf_get_root(qpdf_data data);
+ /* Retrieve and replace indirect objects */
+ QPDF_DLL
+ qpdf_oh qpdf_get_object_by_id(qpdf_data qpdf, int objid, int generation);
+ QPDF_DLL
+ qpdf_oh qpdf_make_indirect_object(qpdf_data qpdf, qpdf_oh oh);
+ QPDF_DLL
+ void qpdf_replace_object(
+ qpdf_data qpdf, int objid, int generation, qpdf_oh oh);
+
/* Wrappers around QPDFObjectHandle methods. Be sure to read
* corresponding comments in QPDFObjectHandle.hh to understand
* what each function does and what kinds of objects it applies