QPDF::getAllPages()
{
    // Note that pushInheritedAttributesToPage may also be used to
    // initialize this->m->all_pages.
    if (this->m->all_pages.empty())
    {
        std::set<QPDFObjGen> visited;
        std::set<QPDFObjGen> seen;
	getAllPagesInternal(getRoot().getKey("/Pages"), this->m->all_pages,
                            visited, seen);
    }
    return this->m->all_pages;
}
QPDF::getAllPages()
{
     
     
    if (this->m->all_pages.empty())
    {
        std::set<QPDFObjGen> visited;
        std::set<QPDFObjGen> seen;
	getAllPagesInternal(getRoot().getKey("/Pages"), this->m->all_pages,
                            visited, seen);
    }
    return this->m->all_pages;
}