From 1c62c2a3427e92846ddaaae44f864022b2aade4f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 10 Dec 2021 14:57:11 -0500 Subject: C API: expose functions for indirect objects (fixes #588) --- include/qpdf/qpdf-c.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/qpdf/qpdf-c.h') 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 -- cgit v1.2.3-70-g09d2