diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-06-22 20:52:03 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-06-22 21:53:40 +0200 |
commit | 2a82f6e1e05b5791c264efd8f70a20aeadca7501 (patch) | |
tree | 6b7ffc3c0662e61c771e8e96f91b9f4389c79beb /include/qpdf | |
parent | c81836076f2b840abc476e3e93988efa57cd5a6b (diff) | |
download | qpdf-2a82f6e1e05b5791c264efd8f70a20aeadca7501.tar.zst |
Add method to get count of objects in QPDF
Diffstat (limited to 'include/qpdf')
-rw-r--r-- | include/qpdf/QPDF.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index ad84fad5..681d233c 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -431,6 +431,12 @@ class QPDF QPDF_DLL void showXRefTable(); + // Return the approximate number of indirect objects. It is + // approximate because not all objects in the file are preserved + // in all cases. + QPDF_DLL + size_t getObjectCount(); + // Returns a list of indirect objects for every object in the xref // table. Useful for discovering objects that are not otherwise // referenced. |