Foxit PDF SDK
foxit::addon::ofd::OFDPage类 参考
类 foxit::addon::ofd::OFDPage 继承关系图:
foxit::Base

Public 成员函数

 OFDPage ()
 构造函数。
 
 OFDPage (const OFDPage &other)
 构造函数,使用另一个OFD页面对象。
 
Matrix GetDisplayMatrix (int left, int top, int width, int height, common::Rotation rotate)
 获取显示矩阵。 更多...
 
float GetHeight () const
 获取页面高度(单位为1/72英寸)。 更多...
 
float GetWidth () const
 获取页面宽度(单位为1/72英寸)。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator!= (const OFDPage &other) const
 不等于操作符。 更多...
 
OFDPageoperator= (const OFDPage &other)
 赋值操作符。 更多...
 
bool operator== (const OFDPage &other) const
 等于操作符。 更多...
 
void Release ()
 释放当前OFD页面对象。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类用于获取OFD页面的信息。 请确保在使用此类之前已成功调用 common::Library::InitializeOFDEngine

参见
common::Library

成员函数说明

◆ GetDisplayMatrix()

Matrix foxit::addon::ofd::OFDPage::GetDisplayMatrix ( int  left,
int  top,
int  width,
int  height,
common::Rotation  rotate 
)

获取显示矩阵。

此函数用于获取显示页面的矩阵。

参数
[in]left显示区域的左侧位置。
[in]top显示区域的顶部位置。
[in]width显示区域的宽度。
[in]height显示区域的高度。
[in]rotate显示区域的旋转。请参考从 common::e_Rotation0 开始的值, 这应该是这些值中的一个。
返回
用于显示页面的矩阵。

◆ GetHeight()

float foxit::addon::ofd::OFDPage::GetHeight ( ) const

获取页面高度(单位为1/72英寸)。

返回
页面高度。

◆ GetWidth()

float foxit::addon::ofd::OFDPage::GetWidth ( ) const

获取页面宽度(单位为1/72英寸)。

返回
页面宽度。

◆ IsEmpty()

bool foxit::addon::ofd::OFDPage::IsEmpty ( ) const

检查当前对象是否为空。

当当前对象为空时,意味着当前对象无用。

返回
true 表示当前对象为空,而 false 表示不为空。

◆ operator!=()

bool foxit::addon::ofd::OFDPage::operator!= ( const OFDPage other) const

不等于操作符。

参数
[in]other另一个OFD页面对象。此函数将检查当前对象是否不等于此对象。
返回
true 表示不相等,而 false 表示相等。

◆ operator=()

OFDPage& foxit::addon::ofd::OFDPage::operator= ( const OFDPage other)

赋值操作符。

参数
[in]other另一个OFD页面对象,其值将被分配给当前对象。
返回
对当前对象本身的引用。

◆ operator==()

bool foxit::addon::ofd::OFDPage::operator== ( const OFDPage other) const

等于操作符。

参数
[in]other另一个OFD页面对象。此函数将检查当前对象是否等于此对象。
返回
true 表示相等,而 false 表示不相等。

◆ Release()

void foxit::addon::ofd::OFDPage::Release ( )

释放当前OFD页面对象。

请在 common::Library::ReleaseOFDEngine 之前调用此函数来释放 当前OFD页面对象。

返回
无返回值。