| Index: core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
|
| diff --git a/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp b/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
|
| index 5f53afd210e9873c13b68636f5c9cd42a175065b..6c5339128bf89a25da300019da6b2ea6add54903 100644
|
| --- a/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
|
| +++ b/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
|
| @@ -47,7 +47,7 @@ void CPDF_PageContentGenerator::GenerateContent() {
|
| ProcessImage(buf, pPageObj->AsImage());
|
| }
|
| CPDF_Object* pContent =
|
| - pPageDict ? pPageDict->GetElementValue("Contents") : NULL;
|
| + pPageDict ? pPageDict->GetDirectObjectBy("Contents") : NULL;
|
| if (pContent) {
|
| pPageDict->RemoveAt("Contents");
|
| }
|
| @@ -122,7 +122,7 @@ void CPDF_PageContentGenerator::ProcessForm(CFX_ByteTextBuf& buf,
|
| }
|
| void CPDF_PageContentGenerator::TransformContent(CFX_Matrix& matrix) {
|
| CPDF_Dictionary* pDict = m_pPage->m_pFormDict;
|
| - CPDF_Object* pContent = pDict ? pDict->GetElementValue("Contents") : NULL;
|
| + CPDF_Object* pContent = pDict ? pDict->GetDirectObjectBy("Contents") : NULL;
|
| if (!pContent)
|
| return;
|
|
|
| @@ -133,7 +133,7 @@ void CPDF_PageContentGenerator::TransformContent(CFX_Matrix& matrix) {
|
| int size = 0;
|
| int i = 0;
|
| for (i = 0; i < iCount; ++i) {
|
| - pContent = pArray->GetElement(i);
|
| + pContent = pArray->GetObjectAt(i);
|
| CPDF_Stream* pStream = ToStream(pContent);
|
| if (!pStream)
|
| continue;
|
|
|