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:
parent
3b413ca87c
commit
47a846a7e0
@ -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
|
||||||
|
@ -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();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user