aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDF.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/QPDF.hh')
-rw-r--r--include/qpdf/QPDF.hh13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index fd0c9b54..b90dea3b 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -434,8 +434,19 @@ class QPDF
// Map object to object stream that contains it
QPDF_DLL
void getObjectStreamData(std::map<int, int>&);
+
// Get a list of objects that would be permitted in an object
- // stream
+ // stream.
+ QPDF_DLL
+ std::vector<QPDFObjGen> getCompressibleObjGens();
+
+ // Deprecated: get a list of objects that would be permitted in an
+ // object stream. This method is deprecated and will be removed.
+ // It's incorrect because it disregards the generations of the
+ // compressible objects, which can lead (and has lead) to bugs.
+ // This method will throw an exception if any of the objects
+ // returned have a generation of other than zero. Use
+ // getCompressibleObjGens() instead.
QPDF_DLL
std::vector<int> getCompressibleObjects();