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_view.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include "public/fpdfview.h"
#include <memory>
#include <utility>
#include <vector>
#include "build/build_config.h"
#include "core/fpdfapi/page/cpdf_docpagedata.h"
#include "core/fpdfapi/page/cpdf_occontext.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/page/cpdf_pageimagecache.h"
#include "core/fpdfapi/page/cpdf_pagemodule.h"
#include "core/fpdfapi/parser/cpdf_array.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_parser.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fpdfapi/render/cpdf_docrenderdata.h"
#include "core/fpdfapi/render/cpdf_pagerendercontext.h"
#include "core/fpdfapi/render/cpdf_rendercontext.h"
#include "core/fpdfapi/render/cpdf_renderoptions.h"
#include "core/fpdfdoc/cpdf_nametree.h"
#include "core/fpdfdoc/cpdf_viewerpreferences.h"
#include "core/fxcrt/cfx_read_only_span_stream.h"
#include "core/fxcrt/cfx_timer.h"
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/span_util.h"
#include "core/fxcrt/stl_util.h"
#include "core/fxcrt/unowned_ptr.h"
#include "core/fxge/cfx_defaultrenderdevice.h"
#include "core/fxge/cfx_gemodule.h"
#include "core/fxge/cfx_glyphcache.h"
#include "core/fxge/cfx_renderdevice.h"
#include "core/fxge/dib/cfx_dibitmap.h"
#include "fpdfsdk/cpdfsdk_customaccess.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "fpdfsdk/cpdfsdk_pageview.h"
#include "fpdfsdk/cpdfsdk_renderpage.h"
#include "fxjs/ijs_runtime.h"
#include "public/fpdf_formfill.h"
#include "third_party/base/check_op.h"
#include "third_party/base/containers/span.h"
#include "third_party/base/memory/ptr_util.h"
#include "third_party/base/numerics/safe_conversions.h"
+ Include dependency graph for fpdf_view.cpp:

Go to the source code of this file.

Functions

FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibrary ()
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibraryWithConfig (const FPDF_LIBRARY_CONFIG *config)
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary ()
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_SetSandBoxPolicy (FPDF_DWORD policy, FPDF_BOOL enable)
 
FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadDocument (FPDF_STRING file_path, FPDF_BYTESTRING password)
 
FPDF_EXPORT int FPDF_CALLCONV FPDF_GetFormType (FPDF_DOCUMENT document)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_LoadXFA (FPDF_DOCUMENT document)
 
FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadMemDocument (const void *data_buf, int size, FPDF_BYTESTRING password)
 
FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadMemDocument64 (const void *data_buf, size_t size, FPDF_BYTESTRING password)
 
FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadCustomDocument (FPDF_FILEACCESS *pFileAccess, FPDF_BYTESTRING password)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetFileVersion (FPDF_DOCUMENT doc, int *fileVersion)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_DocumentHasValidCrossReferenceTable (FPDF_DOCUMENT document)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetDocPermissions (FPDF_DOCUMENT document)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetDocUserPermissions (FPDF_DOCUMENT document)
 
FPDF_EXPORT int FPDF_CALLCONV FPDF_GetSecurityHandlerRevision (FPDF_DOCUMENT document)
 
FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageCount (FPDF_DOCUMENT document)
 
FPDF_EXPORT FPDF_PAGE FPDF_CALLCONV FPDF_LoadPage (FPDF_DOCUMENT document, int page_index)
 
FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageWidthF (FPDF_PAGE page)
 
FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageWidth (FPDF_PAGE page)
 
FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageHeightF (FPDF_PAGE page)
 
FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageHeight (FPDF_PAGE page)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetPageBoundingBox (FPDF_PAGE page, FS_RECTF *rect)
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageBitmap (FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y, int size_x, int size_y, int rotate, int flags)
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageBitmapWithMatrix (FPDF_BITMAP bitmap, FPDF_PAGE page, const FS_MATRIX *matrix, const FS_RECTF *clipping, int flags)
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_ClosePage (FPDF_PAGE page)
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_CloseDocument (FPDF_DOCUMENT document)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetLastError ()
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_DeviceToPage (FPDF_PAGE page, int start_x, int start_y, int size_x, int size_y, int rotate, int device_x, int device_y, double *page_x, double *page_y)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_PageToDevice (FPDF_PAGE page, int start_x, int start_y, int size_x, int size_y, int rotate, double page_x, double page_y, int *device_x, int *device_y)
 
FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_Create (int width, int height, int alpha)
 
FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_CreateEx (int width, int height, int format, void *first_scan, int stride)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetFormat (FPDF_BITMAP bitmap)
 
FPDF_EXPORT void FPDF_CALLCONV FPDFBitmap_FillRect (FPDF_BITMAP bitmap, int left, int top, int width, int height, FPDF_DWORD color)
 
FPDF_EXPORT void *FPDF_CALLCONV FPDFBitmap_GetBuffer (FPDF_BITMAP bitmap)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetWidth (FPDF_BITMAP bitmap)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetHeight (FPDF_BITMAP bitmap)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetStride (FPDF_BITMAP bitmap)
 
FPDF_EXPORT void FPDF_CALLCONV FPDFBitmap_Destroy (FPDF_BITMAP bitmap)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetPageSizeByIndexF (FPDF_DOCUMENT document, int page_index, FS_SIZEF *size)
 
FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageSizeByIndex (FPDF_DOCUMENT document, int page_index, double *width, double *height)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_VIEWERREF_GetPrintScaling (FPDF_DOCUMENT document)
 
FPDF_EXPORT int FPDF_CALLCONV FPDF_VIEWERREF_GetNumCopies (FPDF_DOCUMENT document)
 
FPDF_EXPORT FPDF_PAGERANGE FPDF_CALLCONV FPDF_VIEWERREF_GetPrintPageRange (FPDF_DOCUMENT document)
 
FPDF_EXPORT size_t FPDF_CALLCONV FPDF_VIEWERREF_GetPrintPageRangeCount (FPDF_PAGERANGE pagerange)
 
FPDF_EXPORT int FPDF_CALLCONV FPDF_VIEWERREF_GetPrintPageRangeElement (FPDF_PAGERANGE pagerange, size_t index)
 
FPDF_EXPORT FPDF_DUPLEXTYPE FPDF_CALLCONV FPDF_VIEWERREF_GetDuplex (FPDF_DOCUMENT document)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_VIEWERREF_GetName (FPDF_DOCUMENT document, FPDF_BYTESTRING key, char *buffer, unsigned long length)
 
FPDF_EXPORT FPDF_DWORD FPDF_CALLCONV FPDF_CountNamedDests (FPDF_DOCUMENT document)
 
FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDF_GetNamedDestByName (FPDF_DOCUMENT document, FPDF_BYTESTRING name)
 
FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDF_GetNamedDest (FPDF_DOCUMENT document, int index, void *buffer, long *buflen)
 
FPDF_EXPORT int FPDF_CALLCONV FPDF_GetXFAPacketCount (FPDF_DOCUMENT document)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetXFAPacketName (FPDF_DOCUMENT document, int index, void *buffer, unsigned long buflen)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetXFAPacketContent (FPDF_DOCUMENT document, int index, void *buffer, unsigned long buflen, unsigned long *out_buflen)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetTrailerEnds (FPDF_DOCUMENT document, unsigned int *buffer, unsigned long length)
 

Function Documentation

◆ FPDF_CloseDocument()

FPDF_EXPORT void FPDF_CALLCONV FPDF_CloseDocument ( FPDF_DOCUMENT document)

Definition at line 818 of file fpdf_view.cpp.

Referenced by CheckPDFiumCApi(), main(), and FPDFDocumentDeleter::operator()().

+ Here is the caller graph for this function:

◆ FPDF_ClosePage()

FPDF_EXPORT void FPDF_CALLCONV FPDF_ClosePage ( FPDF_PAGE page)

Definition at line 801 of file fpdf_view.cpp.

References IPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), EmbedderTest::CloseSavedPage(), main(), FPDFPageDeleter::operator()(), 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:

◆ FPDF_CountNamedDests()

FPDF_EXPORT FPDF_DWORD FPDF_CALLCONV FPDF_CountNamedDests ( FPDF_DOCUMENT document)

Definition at line 1113 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), and CPDF_Document::GetRoot().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_DestroyLibrary()

FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary ( )

Definition at line 257 of file fpdf_view.cpp.

References CFX_GEModule::Destroy(), CPDF_PageModule::Destroy(), IJS_Runtime::Destroy(), and CFX_Timer::DestroyGlobals().

Referenced by CheckPDFiumCApi(), main(), EmbedderTestEnvironment::TearDown(), TEST_F(), and TEST_F().

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

◆ FPDF_DeviceToPage()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_DeviceToPage ( FPDF_PAGE page,
int start_x,
int start_y,
int size_x,
int size_y,
int rotate,
int device_x,
int device_y,
double * page_x,
double * page_y )

Definition at line 827 of file fpdf_view.cpp.

References FX_RECT::FX_RECT(), and IPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_DocumentHasValidCrossReferenceTable()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_DocumentHasValidCrossReferenceTable ( FPDF_DOCUMENT document)

Definition at line 390 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), and CPDF_Document::has_valid_cross_reference_table().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_GetDocPermissions()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetDocPermissions ( FPDF_DOCUMENT document)

Definition at line 396 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), and CPDF_Document::GetUserPermissions().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_GetDocUserPermissions()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetDocUserPermissions ( FPDF_DOCUMENT document)

Definition at line 402 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), and CPDF_Document::GetUserPermissions().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_GetFileVersion()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetFileVersion ( FPDF_DOCUMENT doc,
int * fileVersion )

Definition at line 371 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), CPDF_Parser::GetFileVersion(), and CPDF_Document::GetParser().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_GetFormType()

FPDF_EXPORT int FPDF_CALLCONV FPDF_GetFormType ( FPDF_DOCUMENT document)

Definition at line 306 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), CPDF_Dictionary::GetBooleanFor(), and CPDF_Document::GetRoot().

Referenced by CheckPDFiumCApi(), and EmbedderTest::OpenDocumentHelper().

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

◆ FPDF_GetLastError()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetLastError ( )

Definition at line 823 of file fpdf_view.cpp.

References FXSYS_GetLastError().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_GetNamedDest()

FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDF_GetNamedDest ( FPDF_DOCUMENT document,
int index,
void * buffer,
long * buflen )

Definition at line 1208 of file fpdf_view.cpp.

References fxcrt::ByteString::c_str(), CPDFDocumentFromFPDFDocument(), CPDF_Dictionary::GetArrayFor(), CPDF_Document::GetRoot(), and fxcrt::WideString::ToUTF16LE().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_GetNamedDestByName()

FPDF_EXPORT FPDF_DEST FPDF_CALLCONV FPDF_GetNamedDestByName ( FPDF_DOCUMENT document,
FPDF_BYTESTRING name )

Definition at line 1131 of file fpdf_view.cpp.

References fxcrt::ByteString::ByteString(), CPDFDocumentFromFPDFDocument(), and CPDF_NameTree::LookupNamedDest().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_GetPageBoundingBox()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetPageBoundingBox ( FPDF_PAGE page,
FS_RECTF * rect )

Definition at line 472 of file fpdf_view.cpp.

References CPDFPageFromFPDFPage(), and CPDF_PageObjectHolder::GetBBox().

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

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

◆ FPDF_GetPageCount()

FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageCount ( FPDF_DOCUMENT document)

Definition at line 417 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), CPDF_Document::GetExtension(), CPDF_Document::Extension::GetPageCount(), and CPDF_Document::GetPageCount().

Referenced by CheckPDFiumCApi(), FPDF_LoadPage(), EmbedderTest::GetPageCount(), and EmbedderTest::OpenDocumentHelper().

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

◆ FPDF_GetPageHeight()

FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageHeight ( FPDF_PAGE page)

Definition at line 468 of file fpdf_view.cpp.

References FPDF_GetPageHeightF().

Referenced by CheckPDFiumCApi(), FPDFProgressiveRenderEmbedderTest::FinishRenderPageWithForms(), FPDFProgressiveRenderEmbedderTest::StartRenderPageWithColorSchemeAndBackground(), FPDFProgressiveRenderEmbedderTest::StartRenderPageWithFlags(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), FPDFViewEmbedderTest::TestRenderPageBitmapWithFlags(), and FPDFViewEmbedderTest::TestRenderPageBitmapWithInternalMemoryAndStride().

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

◆ FPDF_GetPageHeightF()

FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageHeightF ( FPDF_PAGE page)

Definition at line 463 of file fpdf_view.cpp.

References IPDF_Page::GetPageHeight(), and IPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), FPDF_GetPageHeight(), EmbedderTest::RenderPageWithFlags(), 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:

◆ FPDF_GetPageSizeByIndex()

FPDF_EXPORT int FPDF_CALLCONV FPDF_GetPageSizeByIndex ( FPDF_DOCUMENT document,
int page_index,
double * width,
double * height )

Definition at line 1019 of file fpdf_view.cpp.

References FPDF_GetPageSizeByIndexF().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_GetPageSizeByIndexF()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetPageSizeByIndexF ( FPDF_DOCUMENT document,
int page_index,
FS_SIZEF * size )

Definition at line 982 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument().

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

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

◆ FPDF_GetPageWidth()

FPDF_EXPORT double FPDF_CALLCONV FPDF_GetPageWidth ( FPDF_PAGE page)

Definition at line 459 of file fpdf_view.cpp.

References FPDF_GetPageWidthF().

Referenced by CheckPDFiumCApi(), FPDFProgressiveRenderEmbedderTest::FinishRenderPageWithForms(), FPDFProgressiveRenderEmbedderTest::StartRenderPageWithColorSchemeAndBackground(), FPDFProgressiveRenderEmbedderTest::StartRenderPageWithFlags(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), FPDFViewEmbedderTest::TestRenderPageBitmapWithExternalMemory(), FPDFViewEmbedderTest::TestRenderPageBitmapWithFlags(), and FPDFViewEmbedderTest::TestRenderPageBitmapWithInternalMemoryAndStride().

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

◆ FPDF_GetPageWidthF()

FPDF_EXPORT float FPDF_CALLCONV FPDF_GetPageWidthF ( FPDF_PAGE page)

Definition at line 454 of file fpdf_view.cpp.

References IPDF_Page::GetPageWidth(), and IPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), FPDF_GetPageWidth(), EmbedderTest::RenderPageWithFlags(), 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:

◆ FPDF_GetSecurityHandlerRevision()

FPDF_EXPORT int FPDF_CALLCONV FPDF_GetSecurityHandlerRevision ( FPDF_DOCUMENT document)

Definition at line 408 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), and CPDF_Document::GetParser().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_GetTrailerEnds()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetTrailerEnds ( FPDF_DOCUMENT document,
unsigned int * buffer,
unsigned long length )

Definition at line 1329 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), and CPDF_Document::GetParser().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_GetXFAPacketContent()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_GetXFAPacketContent ( FPDF_DOCUMENT document,
int index,
void * buffer,
unsigned long buflen,
unsigned long * out_buflen )

Definition at line 1308 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_GetXFAPacketCount()

FPDF_EXPORT int FPDF_CALLCONV FPDF_GetXFAPacketCount ( FPDF_DOCUMENT document)

Definition at line 1280 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_GetXFAPacketName()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_GetXFAPacketName ( FPDF_DOCUMENT document,
int index,
void * buffer,
unsigned long buflen )

Definition at line 1290 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_InitLibrary()

FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibrary ( )

Definition at line 224 of file fpdf_view.cpp.

References FPDF_InitLibraryWithConfig().

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

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

◆ FPDF_InitLibraryWithConfig()

FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibraryWithConfig ( const FPDF_LIBRARY_CONFIG * config)

Definition at line 229 of file fpdf_view.cpp.

References CFX_GEModule::Create(), CPDF_PageModule::Create(), FX_InitializeMemoryAllocators(), IJS_Runtime::Initialize(), and CFX_Timer::InitializeGlobals().

Referenced by CheckPDFiumCApi(), FPDF_InitLibrary(), main(), and EmbedderTestEnvironment::SetUp().

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

◆ FPDF_LoadCustomDocument()

FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadCustomDocument ( FPDF_FILEACCESS * pFileAccess,
FPDF_BYTESTRING password )

Definition at line 363 of file fpdf_view.cpp.

Referenced by CheckPDFiumCApi(), EmbedderTest::OpenDocumentHelper(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDF_LoadDocument()

FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadDocument ( FPDF_STRING file_path,
FPDF_BYTESTRING password )

Definition at line 299 of file fpdf_view.cpp.

References IFX_SeekableReadStream::CreateFromFilename().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_LoadMemDocument()

FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadMemDocument ( const void * data_buf,
int size,
FPDF_BYTESTRING password )

Definition at line 341 of file fpdf_view.cpp.

Referenced by CheckPDFiumCApi().

+ Here is the caller graph for this function:

◆ FPDF_LoadMemDocument64()

FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadMemDocument64 ( const void * data_buf,
size_t size,
FPDF_BYTESTRING password )

Definition at line 353 of file fpdf_view.cpp.

◆ FPDF_LoadPage()

FPDF_EXPORT FPDF_PAGE FPDF_CALLCONV FPDF_LoadPage ( FPDF_DOCUMENT document,
int page_index )

Definition at line 426 of file fpdf_view.cpp.

References CPDFDocumentFromFPDFDocument(), and FPDF_GetPageCount().

Referenced by CheckPDFiumCApi(), and EmbedderTest::LoadSavedPage().

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

◆ FPDF_LoadXFA()

Definition at line 327 of file fpdf_view.cpp.

Referenced by CheckPDFiumCApi(), and EmbedderTest::OpenDocumentHelper().

+ Here is the caller graph for this function:

◆ FPDF_PageToDevice()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_PageToDevice ( FPDF_PAGE page,
int start_x,
int start_y,
int size_x,
int size_y,
int rotate,
double page_x,
double page_y,
int * device_x,
int * device_y )

Definition at line 852 of file fpdf_view.cpp.

References FX_RECT::FX_RECT(), and IPDFPageFromFPDFPage().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_RenderPageBitmap()

FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageBitmap ( FPDF_BITMAP bitmap,
FPDF_PAGE page,
int start_x,
int start_y,
int size_x,
int size_y,
int rotate,
int flags )

Definition at line 698 of file fpdf_view.cpp.

References CPDF_Page::RenderContextClearer::RenderContextClearer(), CPDFPageFromFPDFPage(), and CPDFSDK_RenderPageWithContext().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_RenderPageBitmapWithMatrix()

FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPageBitmapWithMatrix ( FPDF_BITMAP bitmap,
FPDF_PAGE page,
const FS_MATRIX * matrix,
const FS_RECTF * clipping,
int flags )

Definition at line 736 of file fpdf_view.cpp.

References FX_RECT::FX_RECT(), CPDF_Page::RenderContextClearer::RenderContextClearer(), CFXFloatRectFromFSRectF(), CFXMatrixFromFSMatrix(), CPDFPageFromFPDFPage(), CPDFSDK_RenderPage(), CPDF_Page::GetDisplayMatrix(), CPDF_Page::GetPageHeight(), CPDF_Page::GetPageWidth(), CFX_Matrix::operator*=(), CFX_FloatRect::operator=(), and CFX_FloatRect::ToFxRect().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_SetSandBoxPolicy()

FPDF_EXPORT void FPDF_CALLCONV FPDF_SetSandBoxPolicy ( FPDF_DWORD policy,
FPDF_BOOL enable )

Definition at line 281 of file fpdf_view.cpp.

References SetPDFSandboxPolicy().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDF_VIEWERREF_GetDuplex()

FPDF_EXPORT FPDF_DUPLEXTYPE FPDF_CALLCONV FPDF_VIEWERREF_GetDuplex ( FPDF_DOCUMENT document)

Definition at line 1080 of file fpdf_view.cpp.

References CPDF_ViewerPreferences::CPDF_ViewerPreferences(), CPDFDocumentFromFPDFDocument(), CPDF_ViewerPreferences::Duplex(), and fxcrt::operator==().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_VIEWERREF_GetName()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDF_VIEWERREF_GetName ( FPDF_DOCUMENT document,
FPDF_BYTESTRING key,
char * buffer,
unsigned long length )

Definition at line 1096 of file fpdf_view.cpp.

References CPDF_ViewerPreferences::CPDF_ViewerPreferences(), and CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_VIEWERREF_GetNumCopies()

FPDF_EXPORT int FPDF_CALLCONV FPDF_VIEWERREF_GetNumCopies ( FPDF_DOCUMENT document)

Definition at line 1045 of file fpdf_view.cpp.

References CPDF_ViewerPreferences::CPDF_ViewerPreferences(), CPDFDocumentFromFPDFDocument(), and CPDF_ViewerPreferences::NumCopies().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_VIEWERREF_GetPrintPageRange()

FPDF_EXPORT FPDF_PAGERANGE FPDF_CALLCONV FPDF_VIEWERREF_GetPrintPageRange ( FPDF_DOCUMENT document)

Definition at line 1054 of file fpdf_view.cpp.

References CPDF_ViewerPreferences::CPDF_ViewerPreferences(), CPDFDocumentFromFPDFDocument(), and CPDF_ViewerPreferences::PrintPageRange().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_VIEWERREF_GetPrintPageRangeCount()

FPDF_EXPORT size_t FPDF_CALLCONV FPDF_VIEWERREF_GetPrintPageRangeCount ( FPDF_PAGERANGE pagerange)

Definition at line 1065 of file fpdf_view.cpp.

References CPDFArrayFromFPDFPageRange().

+ Here is the call graph for this function:

◆ FPDF_VIEWERREF_GetPrintPageRangeElement()

FPDF_EXPORT int FPDF_CALLCONV FPDF_VIEWERREF_GetPrintPageRangeElement ( FPDF_PAGERANGE pagerange,
size_t index )

Definition at line 1071 of file fpdf_view.cpp.

References CPDFArrayFromFPDFPageRange().

+ Here is the call graph for this function:

◆ FPDF_VIEWERREF_GetPrintScaling()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_VIEWERREF_GetPrintScaling ( FPDF_DOCUMENT document)

Definition at line 1036 of file fpdf_view.cpp.

References CPDF_ViewerPreferences::CPDF_ViewerPreferences(), CPDFDocumentFromFPDFDocument(), and CPDF_ViewerPreferences::PrintScaling().

Referenced by CheckPDFiumCApi().

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

◆ FPDFBitmap_Create()

FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_Create ( int width,
int height,
int alpha )

Definition at line 878 of file fpdf_view.cpp.

References kArgb, and kRgb32.

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

+ Here is the caller graph for this function:

◆ FPDFBitmap_CreateEx()

FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFBitmap_CreateEx ( int width,
int height,
int format,
void * first_scan,
int stride )

Definition at line 889 of file fpdf_view.cpp.

References k8bppRgb, kArgb, kRgb, and kRgb32.

Referenced by CheckPDFiumCApi().

+ Here is the caller graph for this function:

◆ FPDFBitmap_Destroy()

FPDF_EXPORT void FPDF_CALLCONV FPDFBitmap_Destroy ( FPDF_BITMAP bitmap)

Definition at line 976 of file fpdf_view.cpp.

References CFXDIBitmapFromFPDFBitmap().

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

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

◆ FPDFBitmap_FillRect()

FPDF_EXPORT void FPDF_CALLCONV FPDFBitmap_FillRect ( FPDF_BITMAP bitmap,
int left,
int top,
int width,
int height,
FPDF_DWORD color )

Definition at line 941 of file fpdf_view.cpp.

References FX_RECT::FX_RECT(), CFX_DefaultRenderDevice::Attach(), and CFX_RenderDevice::FillRect().

Referenced by CheckPDFiumCApi(), and TEST_F().

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

◆ FPDFBitmap_GetBuffer()

FPDF_EXPORT void *FPDF_CALLCONV FPDFBitmap_GetBuffer ( FPDF_BITMAP bitmap)

Definition at line 959 of file fpdf_view.cpp.

References CFXDIBitmapFromFPDFBitmap().

Referenced by CheckPDFiumCApi(), and EmbedderTest::HashBitmap().

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

◆ FPDFBitmap_GetFormat()

FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetFormat ( FPDF_BITMAP bitmap)

Definition at line 921 of file fpdf_view.cpp.

References CFXDIBitmapFromFPDFBitmap(), CFX_DIBBase::GetFormat(), k8bppMask, k8bppRgb, kArgb, kRgb, and kRgb32.

Referenced by CheckPDFiumCApi(), and BitmapSaver::WriteBitmapToPng().

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

◆ FPDFBitmap_GetHeight()

FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetHeight ( FPDF_BITMAP bitmap)

Definition at line 968 of file fpdf_view.cpp.

References CFXDIBitmapFromFPDFBitmap(), and CFX_DIBBase::GetHeight().

Referenced by CheckPDFiumCApi(), EmbedderTest::CompareBitmap(), EmbedderTest::HashBitmap(), TEST_F(), and BitmapSaver::WriteBitmapToPng().

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

◆ FPDFBitmap_GetStride()

FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetStride ( FPDF_BITMAP bitmap)

Definition at line 972 of file fpdf_view.cpp.

References CFXDIBitmapFromFPDFBitmap(), and CFX_DIBBase::GetPitch().

Referenced by CheckPDFiumCApi(), EmbedderTest::CompareBitmap(), EmbedderTest::HashBitmap(), and BitmapSaver::WriteBitmapToPng().

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

◆ FPDFBitmap_GetWidth()

FPDF_EXPORT int FPDF_CALLCONV FPDFBitmap_GetWidth ( FPDF_BITMAP bitmap)

Definition at line 964 of file fpdf_view.cpp.

References CFXDIBitmapFromFPDFBitmap(), and CFX_DIBBase::GetWidth().

Referenced by CheckPDFiumCApi(), EmbedderTest::CompareBitmap(), EmbedderTest::HashBitmap(), TEST_F(), and BitmapSaver::WriteBitmapToPng().

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