2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-03 15:17:29 +00:00

Added method to clear pages cache.

This commit is contained in:
Tobias Hoffmann 2012-06-18 22:46:19 +02:00 committed by Jay Berkenbilt
parent 3b413ca87c
commit 47a846a7e0
2 changed files with 9 additions and 0 deletions

View File

@ -344,6 +344,9 @@ class QPDF
QPDF_DLL QPDF_DLL
std::vector<QPDFObjectHandle> const& getAllPages(); std::vector<QPDFObjectHandle> const& getAllPages();
QPDF_DLL
void clearPagesCache();
// Resolver class is restricted to QPDFObjectHandle so that only // Resolver class is restricted to QPDFObjectHandle so that only
// it can resolve indirect references. // it can resolve indirect references.
class Resolver class Resolver

View File

@ -2202,3 +2202,9 @@ QPDF::getAllPagesInternal(QPDFObjectHandle cur_pages,
": invalid Type in page tree"); ": invalid Type in page tree");
} }
} }
void
QPDF::clearPagesCache()
{
this->all_pages.clear();
}