|
enum class | LinearizeOption { kDefaultLinearize
, kMustLinearize
} |
enum class | JavaScriptOption { kDisableJavaScript
, kEnableJavaScript
} |
| EmbedderTest () |
| ~EmbedderTest () override |
void | SetUp () override |
void | TearDown () override |
Delegate * | GetDelegate () |
void | SetDelegate (Delegate *delegate) |
void | SetFormFillInfoVersion (int form_fill_info_version) |
void | SetDocumentFromAvail () |
FPDF_DOCUMENT | document () const |
FPDF_DOCUMENT | saved_document () const |
FPDF_FORMHANDLE | form_handle () const |
FPDF_FORMHANDLE | saved_form_handle () const |
void | CreateAvail (FX_FILEAVAIL *file_avail, FPDF_FILEACCESS *file) |
FPDF_AVAIL | avail () |
void | CreateEmptyDocument () |
void | CreateEmptyDocumentWithoutFormFillEnvironment () |
virtual bool | OpenDocumentWithOptions (const std::string &filename, const char *password, LinearizeOption linearize_option, JavaScriptOption javascript_option) |
bool | OpenDocument (const std::string &filename) |
bool | OpenDocumentLinearized (const std::string &filename) |
bool | OpenDocumentWithPassword (const std::string &filename, const char *password) |
bool | OpenDocumentWithoutJavaScript (const std::string &filename) |
void | CloseDocument () |
void | DoOpenActions () |
int | GetFirstPageNum () |
int | GetPageCount () |
ScopedEmbedderTestPage | LoadScopedPage (int page_index) |
FPDF_PAGE | LoadPage (int page_index) |
FPDF_PAGE | LoadPageNoEvents (int page_index) |
void | UnloadPage (FPDF_PAGE page) |
void | UnloadPageNoEvents (FPDF_PAGE page) |
void | SetInitialFormFieldHighlight (FPDF_FORMHANDLE form) |
ScopedFPDFBitmap | RenderLoadedPage (FPDF_PAGE page) |
ScopedFPDFBitmap | RenderLoadedPageWithFlags (FPDF_PAGE page, int flags) |
ScopedFPDFBitmap | RenderSavedPage (FPDF_PAGE page) |
ScopedFPDFBitmap | RenderSavedPageWithFlags (FPDF_PAGE page, int flags) |
static ScopedFPDFBitmap | RenderPageWithFlags (FPDF_PAGE page, FPDF_FORMHANDLE handle, int flags) |
static ScopedFPDFBitmap | RenderPage (FPDF_PAGE page) |
static int | BytesPerPixelForFormat (int format) |
int | version |
void(* | FSDK_UnSupport_Handler )(struct _UNSUPPORT_INFO *pThis, int nType) |
int | version |
int(* | app_alert )(struct _IPDF_JsPlatform *pThis, FPDF_WIDESTRING Msg, FPDF_WIDESTRING Title, int Type, int Icon) |
void(* | app_beep )(struct _IPDF_JsPlatform *pThis, int nType) |
int(* | app_response )(struct _IPDF_JsPlatform *pThis, FPDF_WIDESTRING Question, FPDF_WIDESTRING Title, FPDF_WIDESTRING Default, FPDF_WIDESTRING cLabel, FPDF_BOOL bPassword, void *response, int length) |
int(* | Doc_getFilePath )(struct _IPDF_JsPlatform *pThis, void *filePath, int length) |
void(* | Doc_mail )(struct _IPDF_JsPlatform *pThis, void *mailData, int length, FPDF_BOOL bUI, FPDF_WIDESTRING To, FPDF_WIDESTRING Subject, FPDF_WIDESTRING CC, FPDF_WIDESTRING BCC, FPDF_WIDESTRING Msg) |
void(* | Doc_print )(struct _IPDF_JsPlatform *pThis, FPDF_BOOL bUI, int nStart, int nEnd, FPDF_BOOL bSilent, FPDF_BOOL bShrinkToFit, FPDF_BOOL bPrintAsImage, FPDF_BOOL bReverse, FPDF_BOOL bAnnotations) |
void(* | Doc_submitForm )(struct _IPDF_JsPlatform *pThis, void *formData, int length, FPDF_WIDESTRING URL) |
void(* | Doc_gotoPage )(struct _IPDF_JsPlatform *pThis, int nPageNum) |
int(* | Field_browse )(struct _IPDF_JsPlatform *pThis, void *filePath, int length) |
void * | m_pFormfillinfo |
void * | m_isolate |
unsigned int | m_v8EmbedderSlot |
int | version |
void(* | Release )(struct _FPDF_FORMFILLINFO *pThis) |
void(* | FFI_Invalidate )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double left, double top, double right, double bottom) |
void(* | FFI_OutputSelectedRect )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double left, double top, double right, double bottom) |
void(* | FFI_SetCursor )(struct _FPDF_FORMFILLINFO *pThis, int nCursorType) |
int(* | FFI_SetTimer )(struct _FPDF_FORMFILLINFO *pThis, int uElapse, TimerCallback lpTimerFunc) |
void(* | FFI_KillTimer )(struct _FPDF_FORMFILLINFO *pThis, int nTimerID) |
FPDF_SYSTEMTIME(* | FFI_GetLocalTime )(struct _FPDF_FORMFILLINFO *pThis) |
void(* | FFI_OnChange )(struct _FPDF_FORMFILLINFO *pThis) |
FPDF_PAGE(* | FFI_GetPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, int nPageIndex) |
FPDF_PAGE(* | FFI_GetCurrentPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document) |
int(* | FFI_GetRotation )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page) |
void(* | FFI_ExecuteNamedAction )(struct _FPDF_FORMFILLINFO *pThis, FPDF_BYTESTRING namedAction) |
void(* | FFI_SetTextFieldFocus )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING value, FPDF_DWORD valueLen, FPDF_BOOL is_focus) |
void(* | FFI_DoURIAction )(struct _FPDF_FORMFILLINFO *pThis, FPDF_BYTESTRING bsURI) |
void(* | FFI_DoGoToAction )(struct _FPDF_FORMFILLINFO *pThis, int nPageIndex, int zoomMode, float *fPosArray, int sizeofArray) |
IPDF_JSPLATFORM * | m_pJsPlatform |
FPDF_BOOL | xfa_disabled |
void(* | FFI_DisplayCaret )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, FPDF_BOOL bVisible, double left, double top, double right, double bottom) |
int(* | FFI_GetCurrentPageIndex )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document) |
void(* | FFI_SetCurrentPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, int iCurPage) |
void(* | FFI_GotoURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, FPDF_WIDESTRING wsURL) |
void(* | FFI_GetPageViewRect )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double *left, double *top, double *right, double *bottom) |
void(* | FFI_PageEvent )(struct _FPDF_FORMFILLINFO *pThis, int page_count, FPDF_DWORD event_type) |
FPDF_BOOL(* | FFI_PopupMenu )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, FPDF_WIDGET hWidget, int menuFlag, float x, float y) |
FPDF_FILEHANDLER *(* | FFI_OpenFile )(struct _FPDF_FORMFILLINFO *pThis, int fileFlag, FPDF_WIDESTRING wsURL, const char *mode) |
void(* | FFI_EmailTo )(struct _FPDF_FORMFILLINFO *pThis, FPDF_FILEHANDLER *fileHandler, FPDF_WIDESTRING pTo, FPDF_WIDESTRING pSubject, FPDF_WIDESTRING pCC, FPDF_WIDESTRING pBcc, FPDF_WIDESTRING pMsg) |
void(* | FFI_UploadTo )(struct _FPDF_FORMFILLINFO *pThis, FPDF_FILEHANDLER *fileHandler, int fileFlag, FPDF_WIDESTRING uploadTo) |
int(* | FFI_GetPlatform )(struct _FPDF_FORMFILLINFO *pThis, void *platform, int length) |
int(* | FFI_GetLanguage )(struct _FPDF_FORMFILLINFO *pThis, void *language, int length) |
FPDF_FILEHANDLER *(* | FFI_DownloadFromURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING URL) |
FPDF_BOOL(* | FFI_PostRequestURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsContentType, FPDF_WIDESTRING wsEncode, FPDF_WIDESTRING wsHeader, FPDF_BSTR *response) |
FPDF_BOOL(* | FFI_PutRequestURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsEncode) |
void(* | FFI_OnFocusChange )(struct _FPDF_FORMFILLINFO *param, FPDF_ANNOTATION annot, int page_index) |
void(* | FFI_DoURIActionWithKeyboardModifier )(struct _FPDF_FORMFILLINFO *param, FPDF_BYTESTRING uri, int modifiers) |
int | version |
int(* | WriteBlock )(struct FPDF_FILEWRITE_ *pThis, const void *pData, unsigned long size) |
using | PageNumberToHandleMap = std::map<int, FPDF_PAGE> |
bool | OpenDocumentHelper (const char *password, LinearizeOption linearize_option, JavaScriptOption javascript_option, FakeFileAccess *network_simulator, ScopedFPDFDocument *document, ScopedFPDFAvail *avail, ScopedFPDFFormHandle *form_handle) |
FPDF_FORMHANDLE | SetupFormFillEnvironment (FPDF_DOCUMENT doc, JavaScriptOption javascript_option) |
void | ClearString () |
const std::string & | GetString () const |
FPDF_DOCUMENT | OpenSavedDocument () |
FPDF_DOCUMENT | OpenSavedDocumentWithPassword (const char *password) |
void | CloseSavedDocument () |
FPDF_PAGE | LoadSavedPage (int page_index) |
void | CloseSavedPage (FPDF_PAGE page) |
void | VerifySavedRendering (FPDF_PAGE page, int width, int height, const char *md5) |
void | VerifySavedDocument (int width, int height, const char *md5) |
void | SetWholeFileAvailable () |
void | OpenPDFFileForWrite (const std::string &filename) |
void | ClosePDFFileForWrite () |
static std::string | HashBitmap (FPDF_BITMAP bitmap) |
static void | WriteBitmapToPng (FPDF_BITMAP bitmap, const std::string &filename) |
static void | CompareBitmap (FPDF_BITMAP bitmap, int expected_width, int expected_height, const char *expected_md5sum) |
static int | GetBlockFromString (void *param, unsigned long pos, unsigned char *buf, unsigned long size) |
Definition at line 76 of file fpdf_doc_embeddertest.cpp.