Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 2519343002: Add APIs for limited use of document tagged code. (Closed)

Created:
4 years ago by Lei Zhang
Modified:
4 years ago
Reviewers:
Tom Sepez, dsinclair, npm
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Add APIs for limited use of document tagged code. BUG=pdfium:568 Committed: https://pdfium.googlesource.com/pdfium/+/9067fd683ebf8d6467f8cc5aa7daf5e1f950f846

Patch Set 1 #

Patch Set 2 : 2016 #

Patch Set 3 : Add test #

Total comments: 6

Patch Set 4 : Nits #

Total comments: 1

Patch Set 5 : Fix alt text encoding #

Total comments: 25

Patch Set 6 : rebase #

Patch Set 7 : Address comments #

Patch Set 8 : More nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -11 lines) Patch
M BUILD.gn View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
A fpdfsdk/fpdf_structtree.cpp View 1 2 3 4 5 6 7 1 chunk +88 lines, -0 lines 0 comments Download
A fpdfsdk/fpdf_structtree_embeddertest.cpp View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
M fpdfsdk/fpdfdoc.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfview_c_api_test.c View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M public/fpdf_doc.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M public/fpdf_formfill.h View 1 chunk +2 lines, -4 lines 0 comments Download
A public/fpdf_structtree.h View 1 2 3 4 5 6 1 chunk +103 lines, -0 lines 0 comments Download
M public/fpdfview.h View 1 chunk +2 lines, -0 lines 0 comments Download
A testing/resources/tagged_alt_text.pdf View 1 2 Binary file 0 comments Download

Messages

Total messages: 44 (29 generated)
Lei Zhang
https://codereview.chromium.org/2519343002/diff/60001/fpdfsdk/fpdf_structtree_embeddertest.cpp File fpdfsdk/fpdf_structtree_embeddertest.cpp (right): https://codereview.chromium.org/2519343002/diff/60001/fpdfsdk/fpdf_structtree_embeddertest.cpp#newcode12 fpdfsdk/fpdf_structtree_embeddertest.cpp:12: ASSERT_TRUE(OpenDocument("tagged_alt_text.pdf")); Made tagged_alt_text.pdf in OpenOffice. I set the alternate ...
4 years ago (2016-11-22 23:30:42 UTC) #9
Tom Sepez
lgtm https://codereview.chromium.org/2519343002/diff/60001/fpdfsdk/fpdf_structtree.cpp File fpdfsdk/fpdf_structtree.cpp (right): https://codereview.chromium.org/2519343002/diff/60001/fpdfsdk/fpdf_structtree.cpp#newcode5 fpdfsdk/fpdf_structtree.cpp:5: // Original code copyright 2014 Foxit Software Inc. ...
4 years ago (2016-11-22 23:45:36 UTC) #12
Lei Zhang
https://codereview.chromium.org/2519343002/diff/60001/fpdfsdk/fpdf_structtree.cpp File fpdfsdk/fpdf_structtree.cpp (right): https://codereview.chromium.org/2519343002/diff/60001/fpdfsdk/fpdf_structtree.cpp#newcode5 fpdfsdk/fpdf_structtree.cpp:5: // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com ...
4 years ago (2016-11-23 00:03:26 UTC) #15
Lei Zhang
https://codereview.chromium.org/2519343002/diff/80001/fpdfsdk/fpdf_structtree_embeddertest.cpp File fpdfsdk/fpdf_structtree_embeddertest.cpp (right): https://codereview.chromium.org/2519343002/diff/80001/fpdfsdk/fpdf_structtree_embeddertest.cpp#newcode51 fpdfsdk/fpdf_structtree_embeddertest.cpp:51: const char kBlackImageText[25] = {0xfe, 0xff, 0x00, 'B', 0x00, ...
4 years ago (2016-11-23 00:09:08 UTC) #16
Lei Zhang
Please take another look. https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp File fpdfsdk/fpdf_structtree.cpp (right): https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp#newcode50 fpdfsdk/fpdf_structtree.cpp:50: CFX_WideString str = elem->GetDict()->GetUnicodeTextFor("Alt"); Made ...
4 years ago (2016-11-23 01:00:40 UTC) #21
Lei Zhang
https://codereview.chromium.org/2519343002/diff/100001/public/fpdf_structtree.h File public/fpdf_structtree.h (right): https://codereview.chromium.org/2519343002/diff/100001/public/fpdf_structtree.h#newcode67 public/fpdf_structtree.h:67: // Regardless of the platform, the |buffer| is always ...
4 years ago (2016-11-23 01:01:36 UTC) #22
dsinclair
https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp File fpdfsdk/fpdf_structtree.cpp (right): https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp#newcode16 fpdfsdk/fpdf_structtree.cpp:16: return IPDF_StructTree::LoadPage(pPage->m_pDocument, pPage->m_pFormDict); return page ? IPDF_StructTree::LoadPage(pPage->m_pDocument, pPage->m_pFormDict) : ...
4 years ago (2016-11-23 14:04:19 UTC) #25
npm
https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree_embeddertest.cpp File fpdfsdk/fpdf_structtree_embeddertest.cpp (right): https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree_embeddertest.cpp#newcode56 fpdfsdk/fpdf_structtree_embeddertest.cpp:56: FPDF_StructTree_Close(struct_tree); Test that struct_tree is null now?
4 years ago (2016-11-23 16:23:01 UTC) #26
Lei Zhang
https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp File fpdfsdk/fpdf_structtree.cpp (right): https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp#newcode16 fpdfsdk/fpdf_structtree.cpp:16: return IPDF_StructTree::LoadPage(pPage->m_pDocument, pPage->m_pFormDict); On 2016/11/23 14:04:19, dsinclair wrote: > ...
4 years ago (2016-11-23 19:49:55 UTC) #29
Tom Sepez
https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp File fpdfsdk/fpdf_structtree.cpp (right): https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp#newcode56 fpdfsdk/fpdf_structtree.cpp:56: if (buffer || buflen >= len) On 2016/11/23 19:49:55, ...
4 years ago (2016-11-23 20:28:33 UTC) #32
Lei Zhang
https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp File fpdfsdk/fpdf_structtree.cpp (right): https://codereview.chromium.org/2519343002/diff/100001/fpdfsdk/fpdf_structtree.cpp#newcode56 fpdfsdk/fpdf_structtree.cpp:56: if (buffer || buflen >= len) On 2016/11/23 20:28:33, ...
4 years ago (2016-11-23 21:38:56 UTC) #33
Tom Sepez
lgtm
4 years ago (2016-11-23 21:48:23 UTC) #36
dsinclair
lgtm
4 years ago (2016-11-23 21:48:39 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519343002/160001
4 years ago (2016-11-23 22:09:49 UTC) #41
commit-bot: I haz the power
4 years ago (2016-11-23 22:10:12 UTC) #44
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://pdfium.googlesource.com/pdfium/+/9067fd683ebf8d6467f8cc5aa7daf5e1f950...

Powered by Google App Engine
This is Rietveld 408576698