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

Issue 2323203002: Define behaviors of FPDF_RenderPageBitmap_Retail and FPDF_FFLDraw. (Closed)

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

Description

Define behaviors of FPDF_RenderPageBitmap_Retail and FPDF_FFLDraw. Previously, PDFium only supported widget annotations to draw forms. As we've implemented other annotations, the behavior of FPDF_RenderPageBitmap_Retail and FPDF_FFLDraw changed. So, this CL clearly defines what needs to be done in FPDF_RenderPageBitmap_Retail and FPDF_FFLDraw. This CL first assumes that PDFium users will always call FPDF_RenderPageBitmap_Retail and FPDF_FFLDraw to render PDF pages, because otherwise they are not able to support PDF forms. FPDF_RenderPageBitmap_Retail should only deal with non-widget annotations, such as highlight, underline, text, etc. If FPDF_ANNOT flag is passed, non-widget annotations are drawn. Otherwise, they are hidden. FPDF_FFLDraw should only deal with annotations that requires user-interaction, such as widget annotations and popup annotation. Since popup annotation is associated with non-widget annotation, they should not be drawn if the associated annotation is hidden. Thus, if FPDF_ANNOT flag is passed, popup annotations are drawn. Otherwise, they are hidden. Widget annotations should be always drawn regardless of FPDF_ANNOT flag since they need to be always displayed for PDF forms. Also, roll DEPS for testing/corpus to 8485b30. BUG=pdfium:594 Committed: https://pdfium.googlesource.com/pdfium/+/75f84a56fed36111ece82d0ac96e87289622b093

Patch Set 1 #

Total comments: 6

Patch Set 2 : Define behaviors of FPDF_RenderPageBitmap_Retail and FPDF_FFLDraw. #

Patch Set 3 : roll DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -32 lines) Patch
M DEPS View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 1 chunk +15 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h View 2 chunks +2 lines, -0 lines 0 comments Download
M core/fpdfdoc/cpdf_annot.cpp View 1 3 chunks +21 lines, -4 lines 0 comments Download
M core/fpdfdoc/include/cpdf_annot.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/cpdfsdk_annothandlermgr.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M fpdfsdk/cpdfsdk_baannothandler.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M fpdfsdk/cpdfsdk_widgethandler.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/cpdfsdk_xfawidgethandler.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fsdk_mgr.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M fpdfsdk/include/cpdfsdk_annothandlermgr.h View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/include/cpdfsdk_baannothandler.h View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/include/cpdfsdk_widgethandler.h View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/include/cpdfsdk_xfawidgethandler.h View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/include/ipdfsdk_annothandler.h View 1 chunk +2 lines, -1 line 0 comments Download
M public/fpdf_formfill.h View 1 2 chunks +11 lines, -8 lines 0 comments Download
M public/fpdf_progressive.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M public/fpdfview.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M samples/pdfium_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
jaepark
The dry run is failing for some corpus tests. This is because there's a slight ...
4 years, 3 months ago (2016-09-09 02:53:32 UTC) #7
jaepark
On 2016/09/09 02:53:32, jaepark wrote: > The dry run is failing for some corpus tests. ...
4 years, 3 months ago (2016-09-09 03:52:54 UTC) #8
Lei Zhang
https://codereview.chromium.org/2323203002/diff/1/core/fpdfapi/fpdf_render/fpdf_render.cpp File core/fpdfapi/fpdf_render/fpdf_render.cpp (right): https://codereview.chromium.org/2323203002/diff/1/core/fpdfapi/fpdf_render/fpdf_render.cpp#newcode106 core/fpdfapi/fpdf_render/fpdf_render.cpp:106: CPDF_RenderOptions::CPDF_RenderOptions(const CPDF_RenderOptions& rhs) Can this just be: CPDF_RenderOptions::CPDF_RenderOptions(const CPDF_RenderOptions& ...
4 years, 3 months ago (2016-09-09 07:09:01 UTC) #9
Lei Zhang
We should also update the documentation in public/ for the functions in questions. Also, the ...
4 years, 3 months ago (2016-09-09 07:12:12 UTC) #10
jaepark
On 2016/09/09 07:12:12, Lei Zhang wrote: > We should also update the documentation in public/ ...
4 years, 3 months ago (2016-09-09 18:03:23 UTC) #11
jaepark
I also updated the documentation in public/ https://codereview.chromium.org/2323203002/diff/1/core/fpdfapi/fpdf_render/fpdf_render.cpp File core/fpdfapi/fpdf_render/fpdf_render.cpp (right): https://codereview.chromium.org/2323203002/diff/1/core/fpdfapi/fpdf_render/fpdf_render.cpp#newcode106 core/fpdfapi/fpdf_render/fpdf_render.cpp:106: CPDF_RenderOptions::CPDF_RenderOptions(const CPDF_RenderOptions& ...
4 years, 3 months ago (2016-09-09 18:44:33 UTC) #12
Lei Zhang
lgtm
4 years, 3 months ago (2016-09-09 21:20:25 UTC) #13
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/2323203002/20001
4 years, 3 months ago (2016-09-09 21:28:48 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_xfa on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/mac_xfa/builds/2021) win on master.tryserver.client.pdfium (JOB_FAILED, ...
4 years, 3 months ago (2016-09-09 21:33:52 UTC) #17
Lei Zhang
On 2016/09/09 18:03:23, jaepark wrote: > On 2016/09/09 07:12:12, Lei Zhang wrote: > > We ...
4 years, 3 months ago (2016-09-09 21:57:28 UTC) #18
Lei Zhang
On 2016/09/09 21:57:28, Lei Zhang wrote: > It is a very minor difference especially at ...
4 years, 3 months ago (2016-09-09 22:05:46 UTC) #19
jaepark
On 2016/09/09 22:05:46, Lei Zhang wrote: > On 2016/09/09 21:57:28, Lei Zhang wrote: > > ...
4 years, 3 months ago (2016-09-09 22:20:01 UTC) #20
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/2323203002/40001
4 years, 3 months ago (2016-09-09 22:38:49 UTC) #28
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 22:39:13 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/75f84a56fed36111ece82d0ac96e87289622...

Powered by Google App Engine
This is Rietveld 408576698