diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2018-06-22 12:45:14 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-22 12:45:14 +0000 |
commit | a327030ca50bd9e06d4bab3ffc5610bf348be0ee (patch) | |
tree | fe392e1b235dd2e218f121325fc6bbfc18bdbe68 /fpdfsdk/fpdf_doc.cpp | |
parent | c3cc2ab66d3d8f52dea8083abb6775115e17af7d (diff) | |
download | pdfium-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.cpp | 2 |
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; |