summaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorTobias Hoffmann <thobi@worker>2012-06-18 22:46:19 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-21 21:01:02 +0200
commit47a846a7e0bad4d1176c2c372618576987d4ce24 (patch)
tree992e7f90b55ce781ecc87c0e5df422616f9c17b2 /libqpdf
parent3b413ca87c85d3587715bab67f843e846c63cebb (diff)
downloadqpdf-47a846a7e0bad4d1176c2c372618576987d4ce24.tar.zst
Added method to clear pages cache.
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/QPDF.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index 1c47d893..64c454a2 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -2202,3 +2202,9 @@ QPDF::getAllPagesInternal(QPDFObjectHandle cur_pages,
": invalid Type in page tree");
}
}
+
+void
+QPDF::clearPagesCache()
+{
+ this->all_pages.clear();
+}