|
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
Total comments: 6
|
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
|
Total messages: 30 (16 generated)
|