summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_doc.cpp
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2018-06-22 12:45:14 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-22 12:45:14 +0000
commita327030ca50bd9e06d4bab3ffc5610bf348be0ee (patch)
treefe392e1b235dd2e218f121325fc6bbfc18bdbe68 /fpdfsdk/fpdf_doc.cpp
parentc3cc2ab66d3d8f52dea8083abb6775115e17af7d (diff)
downloadpdfium-a327030ca50bd9e06d4bab3ffc5610bf348be0ee.tar.xz
Rework of Fixing metadata not read from linearized file.
Move receiving "Info" dictionary form API implementation to CPDF_Document. Also added test. Bug: pdfium:664 Change-Id: I273980750fbdd4d20711f651245780fc9ba02789 Reviewed-on: https://pdfium-review.googlesource.com/35490 Commit-Queue: Art Snake <art-snake@yandex-team.ru> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_doc.cpp')
-rw-r--r--fpdfsdk/fpdf_doc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_doc.cpp b/fpdfsdk/fpdf_doc.cpp
index 465b11302b..7a2bbc4c2e 100644
--- a/fpdfsdk/fpdf_doc.cpp
+++ b/fpdfsdk/fpdf_doc.cpp
@@ -400,7 +400,7 @@ FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetMetaText(FPDF_DOCUMENT document,
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc)
return 0;
- pDoc->LoadDocumentInfo();
+
const CPDF_Dictionary* pInfo = pDoc->GetInfo();
if (!pInfo)
return 0;