From 2a82f6e1e05b5791c264efd8f70a20aeadca7501 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 22 Jun 2018 14:52:03 -0400 Subject: Add method to get count of objects in QPDF --- include/qpdf/QPDF.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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. -- cgit v1.2.3-70-g09d2