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
font_renamer.h
Go to the documentation of this file.
1// Copyright 2022 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef TESTING_FONT_RENAMER_H_
6#define TESTING_FONT_RENAMER_H_
7
8#include "core/fxcrt/unowned_ptr.h"
9#include "public/fpdf_sysfontinfo.h"
10
11class FontRenamer final : public FPDF_SYSFONTINFO {
12 public:
14 ~FontRenamer();
15
16 FPDF_SYSFONTINFO* impl() { return impl_; }
17
18 private:
19 UnownedPtr<FPDF_SYSFONTINFO> impl_;
20};
21
22#endif // TESTING_FONT_RENAMER_H_
FPDF_SYSFONTINFO * impl()
PageRenderer(FPDF_PAGE page, int width, int height, int flags)
int width() const
int height() const
FPDF_PAGE page()
int flags() const
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)
Definition dump.cc:192
void DumpPageInfo(FPDF_PAGE page, int page_idx)
Definition dump.cc:184
void SendPageEvents(FPDF_FORMHANDLE form, FPDF_PAGE page, const std::string &events, const std::function< void()> &idler)
Definition event.cc:162
#define PDF_FORM_NOTAVAIL
#define PDF_DATA_NOTAVAIL
#define PDF_DATA_ERROR
#define PDF_LINEARIZED
#define PDF_FORM_ERROR
#define FPDF_UNSP_DOC_PORTABLECOLLECTION
Definition fpdf_ext.h:22
#define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA
Definition fpdf_ext.h:44
#define FPDF_UNSP_ANNOT_ATTACHMENT
Definition fpdf_ext.h:46
#define FPDF_UNSP_DOC_SECURITY
Definition fpdf_ext.h:26
#define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM
Definition fpdf_ext.h:32
FPDF_EXPORT void FPDF_CALLCONV FSDK_SetLocaltimeFunction(struct tm *(*func)(const time_t *))
Definition fpdf_ext.cpp:80
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO *unsp_info)
Definition fpdf_ext.cpp:67
#define FPDF_UNSP_DOC_ATTACHMENT
Definition fpdf_ext.h:24
#define FPDF_UNSP_ANNOT_SIG
Definition fpdf_ext.h:48
#define FPDF_UNSP_ANNOT_SOUND
Definition fpdf_ext.h:40
#define FPDF_UNSP_DOC_SHAREDFORM_EMAIL
Definition fpdf_ext.h:34
#define FPDF_UNSP_DOC_XFAFORM
Definition fpdf_ext.h:20
#define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT
Definition fpdf_ext.h:30
#define FPDF_UNSP_ANNOT_3DANNOT
Definition fpdf_ext.h:36
#define FPDF_UNSP_ANNOT_MOVIE
Definition fpdf_ext.h:38
FPDF_EXPORT void FPDF_CALLCONV FSDK_SetTimeFunction(time_t(*func)())
Definition fpdf_ext.cpp:75
#define FPDF_UNSP_ANNOT_SCREEN_MEDIA
Definition fpdf_ext.h:42
#define FPDF_UNSP_DOC_SHAREDREVIEW
Definition fpdf_ext.h:28
#define FPDFDOC_AACTION_WC
FPDF_EXPORT void FPDF_CALLCONV FORM_OnAfterLoadPage(FPDF_PAGE page, FPDF_FORMHANDLE hHandle)
FPDF_EXPORT void FPDF_CALLCONV FORM_OnBeforeClosePage(FPDF_PAGE page, FPDF_FORMHANDLE hHandle)
#define FPDFPAGE_AACTION_CLOSE
FPDF_EXPORT void FPDF_CALLCONV FORM_DoPageAAction(FPDF_PAGE page, FPDF_FORMHANDLE hHandle, int aaType)
#define FPDF_FORMFIELD_UNKNOWN
#define FPDFPAGE_AACTION_OPEN
#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
Definition fpdfview.h:817
#define FPDF_RENDER_NO_SMOOTHTEXT
Definition fpdfview.h:824
#define FPDF_ERR_FILE
Definition fpdfview.h:599
#define FPDF_ERR_SECURITY
Definition fpdfview.h:602
#define FPDF_PRINTING
Definition fpdfview.h:821
#define FPDFBitmap_BGRx
Definition fpdfview.h:1102
#define FPDF_RENDER_NO_SMOOTHIMAGE
Definition fpdfview.h:826
#define FPDF_CONVERT_FILL_TO_STROKE
Definition fpdfview.h:835
#define FPDF_REVERSE_BYTE_ORDER
Definition fpdfview.h:831
#define FPDFBitmap_BGRA
Definition fpdfview.h:1104
#define FPDF_ERR_UNKNOWN
Definition fpdfview.h:598
#define FPDF_ERR_PASSWORD
Definition fpdfview.h:601
#define FPDF_ERR_PAGE
Definition fpdfview.h:603
#define FPDF_RENDER_FORCEHALFTONE
Definition fpdfview.h:819
#define FPDF_ERR_FORMAT
Definition fpdfview.h:600
#define FPDF_ERR_SUCCESS
Definition fpdfview.h:597
#define FPDF_GRAYSCALE
Definition fpdfview.h:811
#define FPDF_NO_NATIVETEXT
Definition fpdfview.h:809
#define FPDF_ANNOT
Definition fpdfview.h:804
#define FPDF_LCD_TEXT
Definition fpdfview.h:807
#define FPDF_RENDER_NO_SMOOTHPATH
Definition fpdfview.h:828
int main(int argc, const char *argv[])
void(* FFI_ExecuteNamedAction)(struct _FPDF_FORMFILLINFO *pThis, FPDF_BYTESTRING namedAction)
void(* AddSegment)(struct _FX_DOWNLOADHINTS *pThis, size_t offset, size_t size)
void(* FSDK_UnSupport_Handler)(struct _UNSUPPORT_INFO *pThis, int nType)
Definition fpdf_ext.h:61
void WriteAnnot(FPDF_PAGE page, const char *pdf_name, int num)
Definition write.cc:339
std::string WritePng(const char *pdf_name, int num, void *buffer, int stride, int width, int height)
Definition write.cc:451
void WriteText(FPDF_TEXTPAGE textpage, const char *pdf_name, int num)
Definition write.cc:310
std::string WritePpm(const char *pdf_name, int num, void *buffer_void, int stride, int width, int height)
Definition write.cc:259