| Index: core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| index d3909ceaec2ee579f6fd9036baf4c0eaa6316c34..020e3544e9f5bec6db730e1bf62fbf5d54e8e931 100644
|
| --- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| @@ -512,6 +512,10 @@ CPDF_Dictionary* CPDF_Document::GetPagesDict() const {
|
| return pRoot ? pRoot->GetDictFor("Pages") : nullptr;
|
| }
|
|
|
| +bool CPDF_Document::IsPageLoaded(int iPage) const {
|
| + return !!m_PageList.GetAt(iPage);
|
| +}
|
| +
|
| CPDF_Dictionary* CPDF_Document::GetPage(int iPage) {
|
| if (iPage < 0 || iPage >= m_PageList.GetSize())
|
| return nullptr;
|
| @@ -541,6 +545,10 @@ CPDF_Dictionary* CPDF_Document::GetPage(int iPage) {
|
| return pPage;
|
| }
|
|
|
| +void CPDF_Document::SetPageObjNum(int iPage, uint32_t objNum) {
|
| + m_PageList.SetAt(iPage, objNum);
|
| +}
|
| +
|
| int CPDF_Document::FindPageIndex(CPDF_Dictionary* pNode,
|
| uint32_t& skip_count,
|
| uint32_t objnum,
|
|
|