Index: core/fpdftext/fpdf_text_int.cpp |
diff --git a/core/fpdftext/fpdf_text_int.cpp b/core/fpdftext/fpdf_text_int.cpp |
index f8f201b547cb04a59db18788b7e22dfeaf35326c..8d8fa4e9ed87eb321b2042a88c853e1376f863e9 100644 |
--- a/core/fpdftext/fpdf_text_int.cpp |
+++ b/core/fpdftext/fpdf_text_int.cpp |
@@ -1125,7 +1125,7 @@ int32_t CPDF_TextPage::PreMarkedContent(PDFTEXT_Obj Obj) { |
continue; |
pDict = item.GetParam(); |
CPDF_String* temp = |
- ToString(pDict ? pDict->GetElement("ActualText") : nullptr); |
+ ToString(pDict ? pDict->GetObjectBy("ActualText") : nullptr); |
if (temp) { |
bExist = TRUE; |
actText = temp->GetUnicodeText(); |