Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_annot.cpp File Reference

(ada9ddbf8c604585ac344b72f7bb63ac27c84726)

#include "public/fpdf_annot.h"
#include <memory>
#include <sstream>
#include <utility>
#include <vector>
#include "constants/annotation_common.h"
#include "core/fpdfapi/edit/cpdf_pagecontentgenerator.h"
#include "core/fpdfapi/page/cpdf_annotcontext.h"
#include "core/fpdfapi/page/cpdf_form.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/page/cpdf_pageobject.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_boolean.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fpdfapi/parser/fpdf_parser_utility.h"
#include "core/fpdfdoc/cpdf_annot.h"
#include "core/fpdfdoc/cpdf_color_utils.h"
#include "core/fpdfdoc/cpdf_formfield.h"
#include "core/fpdfdoc/cpdf_generateap.h"
#include "core/fpdfdoc/cpdf_interactiveform.h"
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/fx_string_wrappers.h"
#include "core/fxcrt/stl_util.h"
#include "core/fxge/cfx_color.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "fpdfsdk/cpdfsdk_interactiveform.h"
#include "third_party/base/check.h"
#include "third_party/base/containers/contains.h"
#include "third_party/base/memory/ptr_util.h"
#include "third_party/base/numerics/safe_conversions.h"
+ Include dependency graph for fpdf_annot.cpp:

Go to the source code of this file.

Functions

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsSupportedSubtype (FPDF_ANNOTATION_SUBTYPE subtype)
 
FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFPage_CreateAnnot (FPDF_PAGE page, FPDF_ANNOTATION_SUBTYPE subtype)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotCount (FPDF_PAGE page)
 
FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFPage_GetAnnot (FPDF_PAGE page, int index)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotIndex (FPDF_PAGE page, FPDF_ANNOTATION annot)
 
FPDF_EXPORT void FPDF_CALLCONV FPDFPage_CloseAnnot (FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_RemoveAnnot (FPDF_PAGE page, int index)
 
FPDF_EXPORT FPDF_ANNOTATION_SUBTYPE FPDF_CALLCONV FPDFAnnot_GetSubtype (FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsObjectSupportedSubtype (FPDF_ANNOTATION_SUBTYPE subtype)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_UpdateObject (FPDF_ANNOTATION annot, FPDF_PAGEOBJECT obj)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_AddInkStroke (FPDF_ANNOTATION annot, const FS_POINTF *points, size_t point_count)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_RemoveInkList (FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_AppendObject (FPDF_ANNOTATION annot, FPDF_PAGEOBJECT obj)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetObjectCount (FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFAnnot_GetObject (FPDF_ANNOTATION annot, int index)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_RemoveObject (FPDF_ANNOTATION annot, int index)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetColor (FPDF_ANNOTATION annot, FPDFANNOT_COLORTYPE type, unsigned int R, unsigned int G, unsigned int B, unsigned int A)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetColor (FPDF_ANNOTATION annot, FPDFANNOT_COLORTYPE type, unsigned int *R, unsigned int *G, unsigned int *B, unsigned int *A)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_HasAttachmentPoints (FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetAttachmentPoints (FPDF_ANNOTATION annot, size_t quad_index, const FS_QUADPOINTSF *quad_points)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_AppendAttachmentPoints (FPDF_ANNOTATION annot, const FS_QUADPOINTSF *quad_points)
 
FPDF_EXPORT size_t FPDF_CALLCONV FPDFAnnot_CountAttachmentPoints (FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetAttachmentPoints (FPDF_ANNOTATION annot, size_t quad_index, FS_QUADPOINTSF *quad_points)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetRect (FPDF_ANNOTATION annot, const FS_RECTF *rect)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetRect (FPDF_ANNOTATION annot, FS_RECTF *rect)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetVertices (FPDF_ANNOTATION annot, FS_POINTF *buffer, unsigned long length)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetInkListCount (FPDF_ANNOTATION annot)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetInkListPath (FPDF_ANNOTATION annot, unsigned long path_index, FS_POINTF *buffer, unsigned long length)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetLine (FPDF_ANNOTATION annot, FS_POINTF *start, FS_POINTF *end)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetBorder (FPDF_ANNOTATION annot, float horizontal_radius, float vertical_radius, float border_width)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetBorder (FPDF_ANNOTATION annot, float *horizontal_radius, float *vertical_radius, float *border_width)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_HasKey (FPDF_ANNOTATION annot, FPDF_BYTESTRING key)
 
FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV FPDFAnnot_GetValueType (FPDF_ANNOTATION annot, FPDF_BYTESTRING key)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetStringValue (FPDF_ANNOTATION annot, FPDF_BYTESTRING key, FPDF_WIDESTRING value)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetStringValue (FPDF_ANNOTATION annot, FPDF_BYTESTRING key, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetNumberValue (FPDF_ANNOTATION annot, FPDF_BYTESTRING key, float *value)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetAP (FPDF_ANNOTATION annot, FPDF_ANNOT_APPEARANCEMODE appearanceMode, FPDF_WIDESTRING value)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetAP (FPDF_ANNOTATION annot, FPDF_ANNOT_APPEARANCEMODE appearanceMode, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFAnnot_GetLinkedAnnot (FPDF_ANNOTATION annot, FPDF_BYTESTRING key)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFlags (FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetFlags (FPDF_ANNOTATION annot, int flags)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormFieldFlags (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFAnnot_GetFormFieldAtPoint (FPDF_FORMHANDLE hHandle, FPDF_PAGE page, const FS_POINTF *point)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldName (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormFieldType (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormAdditionalActionJavaScript (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot, int event, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldAlternateName (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldValue (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetOptionCount (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetOptionLabel (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot, int index, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsOptionSelected (FPDF_FORMHANDLE handle, FPDF_ANNOTATION annot, int index)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetFontSize (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot, float *value)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsChecked (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetFocusableSubtypes (FPDF_FORMHANDLE hHandle, const FPDF_ANNOTATION_SUBTYPE *subtypes, size_t count)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFocusableSubtypesCount (FPDF_FORMHANDLE hHandle)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetFocusableSubtypes (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION_SUBTYPE *subtypes, size_t count)
 
FPDF_EXPORT FPDF_LINK FPDF_CALLCONV FPDFAnnot_GetLink (FPDF_ANNOTATION annot)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormControlCount (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormControlIndex (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldExportValue (FPDF_FORMHANDLE hHandle, FPDF_ANNOTATION annot, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetURI (FPDF_ANNOTATION annot, const char *uri)
 

Function Documentation

◆ FPDFAnnot_AddInkStroke()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_AddInkStroke ( FPDF_ANNOTATION annot,
const FS_POINTF * points,
size_t point_count )

Definition at line 502 of file fpdf_annot.cpp.

References FPDFAnnot_GetSubtype().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_AppendAttachmentPoints()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_AppendAttachmentPoints ( FPDF_ANNOTATION annot,
const FS_QUADPOINTSF * quad_points )

Definition at line 775 of file fpdf_annot.cpp.

References FPDFAnnot_HasAttachmentPoints().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_AppendObject()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_AppendObject ( FPDF_ANNOTATION annot,
FPDF_PAGEOBJECT obj )

Definition at line 539 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), CPDFPageObjectFromFPDFPageObject(), FPDFAnnot_GetSubtype(), FPDFAnnot_IsObjectSupportedSubtype(), CPDF_GenerateAP::GenerateEmptyAP(), IPDF_Page::GetDocument(), CPDF_AnnotContext::GetForm(), CPDF_AnnotContext::GetPage(), CPDF_AnnotContext::HasForm(), CPDF_Annot::kNormal, and CPDF_AnnotContext::SetForm().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_CountAttachmentPoints()

FPDF_EXPORT size_t FPDF_CALLCONV FPDFAnnot_CountAttachmentPoints ( FPDF_ANNOTATION annot)

Definition at line 792 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), FPDFAnnot_HasAttachmentPoints(), and CPDF_AnnotContext::GetAnnotDict().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetAP()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetAP ( FPDF_ANNOTATION annot,
FPDF_ANNOT_APPEARANCEMODE appearanceMode,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1126 of file fpdf_annot.cpp.

References fxcrt::WideString::WideString().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetAttachmentPoints()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetAttachmentPoints ( FPDF_ANNOTATION annot,
size_t quad_index,
FS_QUADPOINTSF * quad_points )

Definition at line 804 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), FPDFAnnot_HasAttachmentPoints(), and CPDF_AnnotContext::GetAnnotDict().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetBorder()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetBorder ( FPDF_ANNOTATION annot,
float * horizontal_radius,
float * vertical_radius,
float * border_width )

Definition at line 965 of file fpdf_annot.cpp.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFAnnot_GetColor()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetColor ( FPDF_ANNOTATION annot,
FPDFANNOT_COLORTYPE type,
unsigned int * R,
unsigned int * G,
unsigned int * B,
unsigned int * A )

Definition at line 681 of file fpdf_annot.cpp.

References fpdfdoc::CFXColorFromArray(), CFX_Color::fColor1, CFX_Color::fColor2, CFX_Color::fColor3, CFX_Color::fColor4, CFX_Color::kCMYK, CFX_Color::kGray, CFX_Color::kRGB, pdfium::annotation::kSubtype, CFX_Color::kTransparent, and CFX_Color::nColorType.

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFlags()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFlags ( FPDF_ANNOTATION annot)

Definition at line 1164 of file fpdf_annot.cpp.

References CPDF_Dictionary::GetIntegerFor(), and pdfium::annotation::kF.

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFocusableSubtypes()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetFocusableSubtypes ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION_SUBTYPE * subtypes,
size_t count )

Definition at line 1390 of file fpdf_annot.cpp.

References CPDFSDKFormFillEnvironmentFromFPDFFormHandle().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFocusableSubtypesCount()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFocusableSubtypesCount ( FPDF_FORMHANDLE hHandle)

Definition at line 1380 of file fpdf_annot.cpp.

References CPDFSDKFormFillEnvironmentFromFPDFFormHandle().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFontSize()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetFontSize ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
float * value )

Definition at line 1322 of file fpdf_annot.cpp.

References FormHandleToInteractiveForm(), CPDF_InteractiveForm::GetControlByDict(), CPDFSDK_Widget::GetFontSize(), CPDFSDK_InteractiveForm::GetInteractiveForm(), and CPDFSDK_InteractiveForm::GetWidget().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormAdditionalActionJavaScript()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormAdditionalActionJavaScript ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
int event,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1230 of file fpdf_annot.cpp.

References CPDF_AAction::GetAction(), CPDF_FormField::GetAdditionalAction(), CPDF_Action::GetJavaScript(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormControlCount()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormControlCount ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot )

Definition at line 1427 of file fpdf_annot.cpp.

References CPDF_FormField::CountControls().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormControlIndex()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormControlIndex ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot )

Definition at line 1433 of file fpdf_annot.cpp.

References FormHandleToInteractiveForm(), CPDF_InteractiveForm::GetControlByDict(), CPDF_FormField::GetControlIndex(), CPDF_InteractiveForm::GetFieldByDict(), and CPDFSDK_InteractiveForm::GetInteractiveForm().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormFieldAlternateName()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldAlternateName ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1252 of file fpdf_annot.cpp.

References CPDF_FormField::GetAlternateName(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormFieldAtPoint()

FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFAnnot_GetFormFieldAtPoint ( FPDF_FORMHANDLE hHandle,
FPDF_PAGE page,
const FS_POINTF * point )

Definition at line 1188 of file fpdf_annot.cpp.

References CPDFPageFromFPDFPage(), FormHandleToInteractiveForm(), FPDFPage_GetAnnot(), CPDF_InteractiveForm::GetControlAtPoint(), and CPDFSDK_InteractiveForm::GetInteractiveForm().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormFieldExportValue()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldExportValue ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1449 of file fpdf_annot.cpp.

References CPDFSDK_Widget::GetExportValue(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormFieldFlags()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormFieldFlags ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot )

Definition at line 1182 of file fpdf_annot.cpp.

References CPDF_FormField::GetFieldFlags().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormFieldName()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldName ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1212 of file fpdf_annot.cpp.

References CPDF_FormField::GetFullName(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormFieldType()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetFormFieldType ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot )

Definition at line 1224 of file fpdf_annot.cpp.

References CPDF_FormField::GetFieldType().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetFormFieldValue()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetFormFieldValue ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1265 of file fpdf_annot.cpp.

References CPDF_FormField::GetValue(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetInkListCount()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetInkListCount ( FPDF_ANNOTATION annot)

Definition at line 888 of file fpdf_annot.cpp.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFAnnot_GetInkListPath()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetInkListPath ( FPDF_ANNOTATION annot,
unsigned long path_index,
FS_POINTF * buffer,
unsigned long length )

Definition at line 894 of file fpdf_annot.cpp.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFAnnot_GetLine()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetLine ( FPDF_ANNOTATION annot,
FS_POINTF * start,
FS_POINTF * end )

Definition at line 918 of file fpdf_annot.cpp.

References FPDFAnnot_GetSubtype().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetLink()

FPDF_EXPORT FPDF_LINK FPDF_CALLCONV FPDFAnnot_GetLink ( FPDF_ANNOTATION annot)

Definition at line 1417 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), and FPDFAnnot_GetSubtype().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetLinkedAnnot()

FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFAnnot_GetLinkedAnnot ( FPDF_ANNOTATION annot,
FPDF_BYTESTRING key )

Definition at line 1147 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), and CPDF_AnnotContext::GetPage().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetNumberValue()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetNumberValue ( FPDF_ANNOTATION annot,
FPDF_BYTESTRING key,
float * value )

Definition at line 1031 of file fpdf_annot.cpp.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFAnnot_GetObject()

FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFAnnot_GetObject ( FPDF_ANNOTATION annot,
int index )

Definition at line 601 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), CPDF_AnnotContext::GetForm(), CPDF_AnnotContext::HasForm(), and CPDF_AnnotContext::SetForm().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetObjectCount()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetObjectCount ( FPDF_ANNOTATION annot)

Definition at line 582 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), CPDF_AnnotContext::GetForm(), CPDF_AnnotContext::HasForm(), and CPDF_AnnotContext::SetForm().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetOptionCount()

FPDF_EXPORT int FPDF_CALLCONV FPDFAnnot_GetOptionCount ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot )

Definition at line 1276 of file fpdf_annot.cpp.

References CPDF_FormField::CountOptions().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetOptionLabel()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetOptionLabel ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
int index,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1283 of file fpdf_annot.cpp.

References CPDF_FormField::CountOptions(), CPDF_FormField::GetOptionLabel(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetRect()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_GetRect ( FPDF_ANNOTATION annot,
FS_RECTF * rect )

Definition at line 847 of file fpdf_annot.cpp.

References FSRectFFromCFXFloatRect(), CPDF_Dictionary::GetRectFor(), and pdfium::annotation::kRect.

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetStringValue()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetStringValue ( FPDF_ANNOTATION annot,
FPDF_BYTESTRING key,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 1018 of file fpdf_annot.cpp.

References CPDF_Dictionary::GetUnicodeTextFor(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetSubtype()

Definition at line 458 of file fpdf_annot.cpp.

References CPDF_Dictionary::GetNameFor(), pdfium::annotation::kSubtype, and CPDF_Annot::StringToAnnotSubtype().

Referenced by CheckPDFiumCApi(), FPDFAnnot_AddInkStroke(), FPDFAnnot_AppendObject(), FPDFAnnot_GetLine(), FPDFAnnot_GetLink(), FPDFAnnot_GetVertices(), FPDFAnnot_HasAttachmentPoints(), FPDFAnnot_RemoveInkList(), FPDFAnnot_RemoveObject(), FPDFAnnot_SetURI(), FPDFAnnot_UpdateObject(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetValueType()

Definition at line 994 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), and FPDFAnnot_HasKey().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_GetVertices()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAnnot_GetVertices ( FPDF_ANNOTATION annot,
FS_POINTF * buffer,
unsigned long length )

Definition at line 859 of file fpdf_annot.cpp.

References FPDFAnnot_GetSubtype().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_HasAttachmentPoints()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_HasAttachmentPoints ( FPDF_ANNOTATION annot)

Definition at line 745 of file fpdf_annot.cpp.

References FPDFAnnot_GetSubtype().

Referenced by CheckPDFiumCApi(), FPDFAnnot_AppendAttachmentPoints(), FPDFAnnot_CountAttachmentPoints(), FPDFAnnot_GetAttachmentPoints(), FPDFAnnot_SetAttachmentPoints(), and FPDFAnnot_SetRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_HasKey()

Definition at line 987 of file fpdf_annot.cpp.

References CPDF_Dictionary::KeyExist().

Referenced by CheckPDFiumCApi(), FPDFAnnot_GetValueType(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_IsChecked()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsChecked ( FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot )

Definition at line 1349 of file fpdf_annot.cpp.

References CPDFSDK_Widget::IsChecked().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_IsObjectSupportedSubtype()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsObjectSupportedSubtype ( FPDF_ANNOTATION_SUBTYPE subtype)

Definition at line 468 of file fpdf_annot.cpp.

Referenced by CheckPDFiumCApi(), FPDFAnnot_AppendObject(), FPDFAnnot_RemoveObject(), and FPDFAnnot_UpdateObject().

+ Here is the caller graph for this function:

◆ FPDFAnnot_IsOptionSelected()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsOptionSelected ( FPDF_FORMHANDLE handle,
FPDF_ANNOTATION annot,
int index )

Definition at line 1300 of file fpdf_annot.cpp.

References CPDF_FormField::CountOptions(), CPDF_FormField::GetFieldType(), CPDF_FormField::IsItemSelected(), kComboBox, and kListBox.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_IsSupportedSubtype()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_IsSupportedSubtype ( FPDF_ANNOTATION_SUBTYPE subtype)

Definition at line 340 of file fpdf_annot.cpp.

Referenced by CheckPDFiumCApi(), and FPDFPage_CreateAnnot().

+ Here is the caller graph for this function:

◆ FPDFAnnot_RemoveInkList()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_RemoveInkList ( FPDF_ANNOTATION annot)

Definition at line 528 of file fpdf_annot.cpp.

References FPDFAnnot_GetSubtype().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_RemoveObject()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_RemoveObject ( FPDF_ANNOTATION annot,
int index )

Definition at line 621 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), FPDFAnnot_GetSubtype(), FPDFAnnot_IsObjectSupportedSubtype(), CPDF_AnnotContext::GetForm(), and CPDF_AnnotContext::HasForm().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_SetAP()

Definition at line 1050 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), IPDF_Page::GetDocument(), CPDF_AnnotContext::GetPage(), CFX_FloatRect::Height(), pdfium::annotation::kAP, pdfium::annotation::kRect, pdfium::annotation::kSubtype, pdfium::annotation::kType, WideStringFromFPDFWideString(), and CFX_FloatRect::Width().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_SetAttachmentPoints()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetAttachmentPoints ( FPDF_ANNOTATION annot,
size_t quad_index,
const FS_QUADPOINTSF * quad_points )

Definition at line 756 of file fpdf_annot.cpp.

References FPDFAnnot_HasAttachmentPoints().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_SetBorder()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetBorder ( FPDF_ANNOTATION annot,
float horizontal_radius,
float vertical_radius,
float border_width )

Definition at line 944 of file fpdf_annot.cpp.

References pdfium::annotation::kAP, and pdfium::annotation::kBorder.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFAnnot_SetColor()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetColor ( FPDF_ANNOTATION annot,
FPDFANNOT_COLORTYPE type,
unsigned int R,
unsigned int G,
unsigned int B,
unsigned int A )

Definition at line 645 of file fpdf_annot.cpp.

References FPDFANNOT_COLORTYPE_InteriorColor.

Referenced by CheckPDFiumCApi().

+ Here is the caller graph for this function:

◆ FPDFAnnot_SetFlags()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetFlags ( FPDF_ANNOTATION annot,
int flags )

Definition at line 1170 of file fpdf_annot.cpp.

References pdfium::annotation::kF.

Referenced by CheckPDFiumCApi().

+ Here is the caller graph for this function:

◆ FPDFAnnot_SetFocusableSubtypes()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetFocusableSubtypes ( FPDF_FORMHANDLE hHandle,
const FPDF_ANNOTATION_SUBTYPE * subtypes,
size_t count )

Definition at line 1357 of file fpdf_annot.cpp.

References CPDFSDKFormFillEnvironmentFromFPDFFormHandle().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_SetRect()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetRect ( FPDF_ANNOTATION annot,
const FS_RECTF * rect )

Definition at line 820 of file fpdf_annot.cpp.

References CFXFloatRectFromFSRectF(), FPDFAnnot_HasAttachmentPoints(), and pdfium::annotation::kRect.

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_SetStringValue()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetStringValue ( FPDF_ANNOTATION annot,
FPDF_BYTESTRING key,
FPDF_WIDESTRING value )

Definition at line 1004 of file fpdf_annot.cpp.

References WideStringFromFPDFWideString().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_SetURI()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetURI ( FPDF_ANNOTATION annot,
const char * uri )

Definition at line 1462 of file fpdf_annot.cpp.

References FPDFAnnot_GetSubtype().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAnnot_UpdateObject()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_UpdateObject ( FPDF_ANNOTATION annot,
FPDF_PAGEOBJECT obj )

Definition at line 474 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation(), CPDFPageObjectFromFPDFPageObject(), FPDFAnnot_GetSubtype(), FPDFAnnot_IsObjectSupportedSubtype(), CPDF_AnnotContext::GetForm(), and CPDF_AnnotContext::HasForm().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPage_CloseAnnot()

FPDF_EXPORT void FPDF_CALLCONV FPDFPage_CloseAnnot ( FPDF_ANNOTATION annot)

Definition at line 439 of file fpdf_annot.cpp.

References CPDFAnnotContextFromFPDFAnnotation().

Referenced by CheckPDFiumCApi(), FPDFAnnotationDeleter::operator()(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPage_CreateAnnot()

Definition at line 362 of file fpdf_annot.cpp.

References CPDF_Annot::AnnotSubtypeToString(), CPDFPageFromFPDFPage(), FPDFAnnot_IsSupportedSubtype(), CPDF_Page::GetDocument(), IPDFPageFromFPDFPage(), pdfium::annotation::kSubtype, and pdfium::annotation::kType.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPage_GetAnnot()

FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV FPDFPage_GetAnnot ( FPDF_PAGE page,
int index )

Definition at line 391 of file fpdf_annot.cpp.

References CPDFPageFromFPDFPage(), and IPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), FPDFAnnot_GetFormFieldAtPoint(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPage_GetAnnotCount()

FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotCount ( FPDF_PAGE page)

Definition at line 382 of file fpdf_annot.cpp.

References CPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and WriteAnnot().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPage_GetAnnotIndex()

FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotIndex ( FPDF_PAGE page,
FPDF_ANNOTATION annot )

Definition at line 413 of file fpdf_annot.cpp.

References CPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPage_RemoveAnnot()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_RemoveAnnot ( FPDF_PAGE page,
int index )

Definition at line 443 of file fpdf_annot.cpp.

References CPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: