| Index: core/fpdfapi/parser/cpdf_document.h
|
| diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h
|
| index ea7bd328aa4302dc28261cada6babc634d505a9a..0de36d00577a4e990672876ea7388d5265ccc045 100644
|
| --- a/core/fpdfapi/parser/cpdf_document.h
|
| +++ b/core/fpdfapi/parser/cpdf_document.h
|
| @@ -105,10 +105,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder {
|
| protected:
|
| // Retrieve page count information by getting count value from the tree nodes
|
| int RetrievePageCount() const;
|
| - CPDF_Dictionary* FindPDFPage(CPDF_Dictionary* pPages,
|
| - int iPage,
|
| - int nPagesToGo,
|
| - int level);
|
| + CPDF_Dictionary* TraversePDFPages(int iPage, int& nPagesToGo, int level);
|
| int FindPageIndex(CPDF_Dictionary* pNode,
|
| uint32_t& skip_count,
|
| uint32_t objnum,
|
| @@ -124,10 +121,23 @@ class CPDF_Document : public CPDF_IndirectObjectHolder {
|
| 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;
|
| + // Vector of nodes to know current position in the page tree. Int is the index
|
| + // of the child being processed.
|
| + std::vector<std::pair<CPDF_Dictionary*, int>> m_pTreeTraversal;
|
| + // Index of last page (leaf) processed from page tree.
|
| + int m_iLastPageTraversed;
|
| bool m_bLinearized;
|
| int m_iFirstPageNo;
|
| uint32_t m_dwFirstPageObjNum;
|
|
|