| Index: fpdfsdk/src/fpdfview.cpp
|
| diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
|
| index b61f574c8bbf0f9846b6fa38cb4f6e1e26fd2ed6..c1feb51434980ae351c69b43a06ff061ec46dcfa 100644
|
| --- a/fpdfsdk/src/fpdfview.cpp
|
| +++ b/fpdfsdk/src/fpdfview.cpp
|
| @@ -270,7 +270,7 @@ DLLEXPORT unsigned long STDCALL FPDF_GetDocPermissions(FPDF_DOCUMENT document) {
|
| return 0;
|
|
|
| CPDF_Dictionary* pDict = pDoc->GetParser()->GetEncryptDict();
|
| - return pDict ? pDict->GetInteger("P") : (FX_DWORD)-1;
|
| + return pDict ? pDict->GetIntegerBy("P") : (FX_DWORD)-1;
|
| }
|
|
|
| DLLEXPORT int STDCALL FPDF_GetSecurityHandlerRevision(FPDF_DOCUMENT document) {
|
| @@ -279,7 +279,7 @@ DLLEXPORT int STDCALL FPDF_GetSecurityHandlerRevision(FPDF_DOCUMENT document) {
|
| return -1;
|
|
|
| CPDF_Dictionary* pDict = pDoc->GetParser()->GetEncryptDict();
|
| - return pDict ? pDict->GetInteger("R") : -1;
|
| + return pDict ? pDict->GetIntegerBy("R") : -1;
|
| }
|
|
|
| DLLEXPORT int STDCALL FPDF_GetPageCount(FPDF_DOCUMENT document) {
|
| @@ -832,7 +832,7 @@ DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document) {
|
|
|
| CPDF_NameTree nameTree(pDoc, "Dests");
|
| pdfium::base::CheckedNumeric<FPDF_DWORD> count = nameTree.GetCount();
|
| - CPDF_Dictionary* pDest = pRoot->GetDict("Dests");
|
| + CPDF_Dictionary* pDest = pRoot->GetDictBy("Dests");
|
| if (pDest)
|
| count += pDest->GetCount();
|
|
|
| @@ -878,7 +878,7 @@ DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document,
|
| CPDF_NameTree nameTree(pDoc, "Dests");
|
| int count = nameTree.GetCount();
|
| if (index >= count) {
|
| - CPDF_Dictionary* pDest = pRoot->GetDict("Dests");
|
| + CPDF_Dictionary* pDest = pRoot->GetDictBy("Dests");
|
| if (!pDest)
|
| return nullptr;
|
|
|
| @@ -904,7 +904,7 @@ DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document,
|
| if (!pDestObj)
|
| return nullptr;
|
| if (CPDF_Dictionary* pDict = pDestObj->AsDictionary()) {
|
| - pDestObj = pDict->GetArray("D");
|
| + pDestObj = pDict->GetArrayBy("D");
|
| if (!pDestObj)
|
| return nullptr;
|
| }
|
|
|