|
Foxit PDF SDK
|
Public 类型 | |
| enum | ZoomMode { ZoomMode.e_ZoomXYZ = 1, ZoomMode.e_ZoomFitPage = 2, ZoomMode.e_ZoomFitHorz = 3, ZoomMode.e_ZoomFitVert = 4, ZoomMode.e_ZoomFitRect = 5, ZoomMode.e_ZoomFitBBox = 6, ZoomMode.e_ZoomFitBHorz = 7, ZoomMode.e_ZoomFitBVert = 8 } |
| 缩放模式枚举。 更多... | |
Public 成员函数 | |
| Destination (PDFArray dest_array) | |
| 构造函数,使用指定的PDF数组对象。 更多... | |
| Destination (Destination other) | |
| 构造函数,使用另一个目标对象。 更多... | |
| float | GetBottom () |
| 获取底部位置值。 更多... | |
| PDFArray | GetDestArray () |
| 获取目标PDF数组。 更多... | |
| float | GetLeft () |
| 获取左位置值。 更多... | |
| int | GetPageIndex (PDFDoc document) |
| 获取目标页面的索引。 更多... | |
| float | GetRight () |
| 获取右侧位置值。 更多... | |
| float | GetTop () |
| 获取顶部位置值。 更多... | |
| float | GetZoomFactor () |
| 获取缩放因子。 更多... | |
| Destination.ZoomMode | GetZoomMode () |
| 获取缩放模式。 更多... | |
| bool | IsEmpty () |
| 检查当前对象是否为空。 更多... | |
| bool | IsLeftNull () |
| 检查左位置值是否为空对象。 更多... | |
| bool | IsTopNull () |
| 检查顶部位置值是否为空对象。 更多... | |
目标定义了PDF文档的特定视图,包含以下项目:
要显示的文档页面。
文档窗口在该页面上的位置。
显示页面时使用的放大(缩放)因子。
Destinations may be associated with bookmarks, or some types of actions. In each case, the destination specifies the view of the document to be presented when the bookmark item or link annotation is opened or 执行动作时。
此类提供了为不同缩放模式创建目标对象以及获取目标数据的函数。
|
strong |
缩放模式枚举。
此枚举的值应单独使用。
|
inline |
构造函数,使用指定的PDF数组对象。
| [in] | dest_array | 表示目标数据的PDF数组对象。 |
|
inline |
构造函数,使用另一个目标对象。
| [in] | other | 另一个目标对象。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBBox 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBHorz 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | top | 顶边的垂直坐标。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBVert 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 左边缘的水平坐标。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitHorz 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | top | 顶边的垂直坐标。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitPage 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitRect 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 矩形的左坐标。 |
| [in] | bottom | 矩形的底坐标。 |
| [in] | right | 矩形的右坐标。 |
| [in] | top | 矩形的顶坐标。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitVert 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 左边缘的水平坐标。 |
|
inlinestatic |
从现有的目标数组创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | pdf_array | 目标PDF数组。此PDF数组可以从类型为foxit.pdf.objects.PDFNameTree.Type.e_Dests 的foxit.pdf.objects.PDFNameTree 中检索。 |
|
inlinestatic |
为缩放模式foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 作为页面左上角位置的水平坐标值。 |
| [in] | top | 作为页面左上角位置的垂直坐标值。 |
| [in] | zoom_factor | 缩放因子值。 |
|
inline |
获取底部位置值。
此方法仅在缩放模式为foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitRect 时有用。 对于其他缩放模式,此函数将返回0.0f。
|
inline |
获取目标PDF数组。
|
inline |
获取左位置值。
这仅在缩放模式为foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 、foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitVert 、 foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitRect 或foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBVert 时有用。 特别是对于foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 、foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitVert 和 foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBVert ,左值可能是一个空对象, 这意味着只需使用应用程序的当前左值作为目标的左值。 在这种情况下,此函数将返回0.0f。为了检查左值是否为0或 空对象,建议用户调用函数Destination.IsLeftNull 。
对于其他缩放模式,此函数将返回0.0f。
|
inline |
获取目标页面的索引。
| [in] | document | 有效的PDF文档对象。 |
|
inline |
获取右侧位置值。
此方法仅在缩放模式为foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitRect 时有用。 对于其他缩放模式,此函数将返回0.0f。
|
inline |
获取顶部位置值。
此方法仅在缩放模式为foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 、foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitHorz 、 foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBHorz 或foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitRect 时有用。 特别地,对于foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 、foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitHorz 和 foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBHorz ,顶部位置值可能是空对象,这意味着只使用 应用程序的当前顶部位置值作为目标的顶部位置值。在这种情况下, 此函数将返回0.0f。为了检查左位置值是否为0或空对象, 建议用户调用函数Destination.IsTopNull 。
对于其他缩放模式,此函数将返回0.0f。
|
inline |
获取缩放因子。
此方法仅在缩放模式为foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 时有用。 对于foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ ,如果缩放因子为0, 这意味着只使用应用程序的当前缩放因子作为目标缩放因子。
对于其他缩放模式,此函数将返回0.0f。
|
inline |
获取缩放模式。
|
inline |
检查当前对象是否为空。
当当前对象为空时,意味着当前对象无用。
|
inline |
检查左位置值是否为空对象。
此方法仅在缩放模式为foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 、foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitVert 或foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBVert 时有用。 此函数可用于检查左位置值是否为空对象。 对于其他缩放模式,此函数将返回false。
|
inline |
检查顶部位置值是否为空对象。
此方法仅在缩放模式为foxit.pdf.actions.Destination.ZoomMode.e_ZoomXYZ 、foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitHorz 或foxit.pdf.actions.Destination.ZoomMode.e_ZoomFitBHorz 时有用。 此函数可用于检查顶部位置值是否为空对象。 对于其他缩放模式,此函数将返回false。