5#ifndef TESTING_FONT_RENAMER_H_
6#define TESTING_FONT_RENAMER_H_
8#include "core/fxcrt/unowned_ptr.h"
9#include "public/fpdf_sysfontinfo.h"
11class FontRenamer
final :
public FPDF_SYSFONTINFO {
16 FPDF_SYSFONTINFO*
impl() {
return impl_; }
FPDF_SYSFONTINFO * impl()
static int GetBlock(void *param, unsigned long pos, unsigned char *pBuf, unsigned long size)
FPDF_RENDERER_TYPE GetDefaultRendererType()
void DumpPageStructure(FPDF_PAGE page, int page_idx)
void DumpPageInfo(FPDF_PAGE page, int page_idx)
void SendPageEvents(FPDF_FORMHANDLE form, FPDF_PAGE page, const std::string &events, const std::function< void()> &idler)
#define PDF_FORM_NOTAVAIL
#define PDF_DATA_NOTAVAIL
#define FPDF_UNSP_DOC_PORTABLECOLLECTION
#define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA
#define FPDF_UNSP_ANNOT_ATTACHMENT
#define FPDF_UNSP_DOC_SECURITY
#define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM
FPDF_EXPORT void FPDF_CALLCONV FSDK_SetLocaltimeFunction(struct tm *(*func)(const time_t *))
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO *unsp_info)
#define FPDF_UNSP_DOC_ATTACHMENT
#define FPDF_UNSP_ANNOT_SIG
#define FPDF_UNSP_ANNOT_SOUND
#define FPDF_UNSP_DOC_SHAREDFORM_EMAIL
#define FPDF_UNSP_DOC_XFAFORM
#define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT
#define FPDF_UNSP_ANNOT_3DANNOT
#define FPDF_UNSP_ANNOT_MOVIE
FPDF_EXPORT void FPDF_CALLCONV FSDK_SetTimeFunction(time_t(*func)())
#define FPDF_UNSP_ANNOT_SCREEN_MEDIA
#define FPDF_UNSP_DOC_SHAREDREVIEW
#define FPDF_RENDER_TOBECONTINUED
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetLastError()
FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadCustomDocument(FPDF_FILEACCESS *pFileAccess, FPDF_BYTESTRING password)
FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageHeightF(FPDF_PAGE page)
FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary()
FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetStride(FPDF_BITMAP bitmap)
FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG *config)
FPDF_EXPORT void *FPDF_CALLCONV FPDFBitmap_GetBuffer(FPDF_BITMAP bitmap)
FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageWidthF(FPDF_PAGE page)
#define FPDF_RENDER_LIMITEDIMAGECACHE
#define FPDF_RENDER_NO_SMOOTHTEXT
#define FPDF_ERR_SECURITY
#define FPDF_RENDER_NO_SMOOTHIMAGE
#define FPDF_CONVERT_FILL_TO_STROKE
#define FPDF_REVERSE_BYTE_ORDER
#define FPDF_ERR_PASSWORD
#define FPDF_RENDER_FORCEHALFTONE
#define FPDF_NO_NATIVETEXT
#define FPDF_RENDER_NO_SMOOTHPATH
int main(int argc, const char *argv[])
void(* AddSegment)(struct _FX_DOWNLOADHINTS *pThis, size_t offset, size_t size)
void(* FSDK_UnSupport_Handler)(struct _UNSUPPORT_INFO *pThis, int nType)
void WriteAnnot(FPDF_PAGE page, const char *pdf_name, int num)
std::string WritePng(const char *pdf_name, int num, void *buffer, int stride, int width, int height)
void WriteText(FPDF_TEXTPAGE textpage, const char *pdf_name, int num)
std::string WritePpm(const char *pdf_name, int num, void *buffer_void, int stride, int width, int height)