Index: core/fpdfapi/parser/cpdf_document.h |
diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h |
index e845ea8eeff7f24e755d3a17f978724311d596fb..c557a56013f71da4dc7106ad5faa97eb154c56ae 100644 |
--- a/core/fpdfapi/parser/cpdf_document.h |
+++ b/core/fpdfapi/parser/cpdf_document.h |
@@ -9,7 +9,6 @@ |
#include <functional> |
#include <memory> |
-#include <stack> |
#include "core/fpdfapi/parser/cpdf_indirect_object_holder.h" |
#include "core/fpdfapi/parser/cpdf_object.h" |
@@ -108,7 +107,10 @@ |
// Retrieve page count information by getting count value from the tree nodes |
int RetrievePageCount() const; |
- CPDF_Dictionary* TraversePDFPages(int iPage, int nPagesToGo); |
+ CPDF_Dictionary* FindPDFPage(CPDF_Dictionary* pPages, |
+ int iPage, |
+ int nPagesToGo, |
+ int level); |
int FindPageIndex(CPDF_Dictionary* pNode, |
uint32_t& skip_count, |
uint32_t objnum, |
@@ -124,19 +126,10 @@ |
FX_BOOL bVert, |
CFX_ByteString basefont, |
std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert); |
- int InsertDeletePDFPage(CPDF_Dictionary* pPages, |
- int nPagesToGo, |
- CPDF_Dictionary* pPage, |
- FX_BOOL bInsert, |
- std::set<CPDF_Dictionary*>* pVisited); |
- int InsertNewPage(int iPage, |
- CPDF_Dictionary* pPageDict, |
- CFX_ArrayTemplate<uint32_t>& pageList); |
+ |
std::unique_ptr<CPDF_Parser> m_pParser; |
CPDF_Dictionary* m_pRootDict; |
CPDF_Dictionary* m_pInfoDict; |
- std::stack<std::pair<CPDF_Dictionary*, int>> m_pTreeTraversal; |
- int m_iLastPageTraversed; |
bool m_bLinearized; |
int m_iFirstPageNo; |
uint32_t m_dwFirstPageObjNum; |