Index: fpdfsdk/javascript/Document.cpp |
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp |
index 75cd2ec251c2da42dac14af3ef2eda15fd9c10dd..4c361b197e832e03116e4bb865ccdfbc86fb2a6e 100644 |
--- a/fpdfsdk/javascript/Document.cpp |
+++ b/fpdfsdk/javascript/Document.cpp |
@@ -784,7 +784,7 @@ FX_BOOL Document::info(IJS_Context* cc, |
for (const auto& it : *pDictionary) { |
const CFX_ByteString& bsKey = it.first; |
CPDF_Object* pValueObj = it.second; |
- CFX_WideString wsKey = CFX_WideString::FromUTF8(bsKey.AsByteStringC()); |
+ CFX_WideString wsKey = CFX_WideString::FromUTF8(bsKey.AsStringC()); |
if (pValueObj->IsString() || pValueObj->IsName()) { |
FXJS_PutObjectString(isolate, pObj, wsKey.c_str(), |
pValueObj->GetUnicodeText().c_str()); |