|
Foxit PDF SDK
|
构造函数 | |
| (float) | - getBottom |
| 获取底部位置值。 更多... | |
| (FSPDFArray *) | - getDestArray |
| 获取目标PDF数组。 更多... | |
| (float) | - getLeft |
| 获取左位置值。 更多... | |
| (int) | - getPageIndex: |
| 获取目标页面的索引。 更多... | |
| (float) | - getRight |
| 获取右侧位置值。 更多... | |
| (float) | - getTop |
| 获取顶部位置值。 更多... | |
| (float) | - getZoomFactor |
| 获取缩放因子。 更多... | |
| (FSDestinationZoomMode) | - getZoomMode |
| 获取缩放模式。 更多... | |
| (id) | - initWithDest_array: |
| 构造函数,使用指定的PDF数组对象。 更多... | |
| (id) | - initWithOther: |
| 构造函数,使用另一个目标对象。 更多... | |
| (BOOL) | - isEmpty |
| 检查当前对象是否为空。 更多... | |
| (BOOL) | - isLeftNull |
| 检查左位置值是否为空对象。 更多... | |
| (BOOL) | - isTopNull |
| 检查顶部位置值是否为空对象。 更多... | |
类方法 | |
| (FSDestination *) | + createFitBBox:page_index: |
| 为缩放模式 FSDestinationZoomFitBBox 创建目标对象。 更多... | |
| (FSDestination *) | + createFitBHorz:page_index:top: |
| 为缩放模式 FSDestinationZoomFitBHorz 创建目标对象。 更多... | |
| (FSDestination *) | + createFitBVert:page_index:left: |
| 为缩放模式 FSDestinationZoomFitBVert 创建目标对象。 更多... | |
| (FSDestination *) | + createFitHorz:page_index:top: |
| 为缩放模式 FSDestinationZoomFitHorz 创建目标对象。 更多... | |
| (FSDestination *) | + createFitPage:page_index: |
| 为缩放模式 FSDestinationZoomFitPage 创建目标对象。 更多... | |
| (FSDestination *) | + createFitRect:page_index:left:bottom:right:top: |
| 为缩放模式 FSDestinationZoomFitRect 创建目标对象。 更多... | |
| (FSDestination *) | + createFitVert:page_index:left: |
| 为缩放模式 FSDestinationZoomFitVert 创建目标对象。 更多... | |
| (FSDestination *) | + createFromPDFArray:pdf_array: |
| 从现有的目标数组创建目标对象。 更多... | |
| (FSDestination *) | + createXYZ:page_index:left:top:zoom_factor: |
| 为缩放模式 FSDestinationZoomXYZ 创建目标对象。 更多... | |
目标定义了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 执行动作时。
此类提供了为不同缩放模式创建目标对象以及获取目标数据的函数。
| + (FSDestination *) createFitBBox: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
为缩放模式 FSDestinationZoomFitBBox 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| + (FSDestination *) createFitBHorz: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
| top: | (float) | top | |
为缩放模式 FSDestinationZoomFitBHorz 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | top | 顶边的垂直坐标。 |
| + (FSDestination *) createFitBVert: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
| left: | (float) | left | |
为缩放模式 FSDestinationZoomFitBVert 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 左边缘的水平坐标。 |
| + (FSDestination *) createFitHorz: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
| top: | (float) | top | |
为缩放模式 FSDestinationZoomFitHorz 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | top | 顶边的垂直坐标。 |
| + (FSDestination *) createFitPage: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
为缩放模式 FSDestinationZoomFitPage 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| + (FSDestination *) createFitRect: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
| left: | (float) | left | |
| bottom: | (float) | bottom | |
| right: | (float) | right | |
| top: | (float) | top | |
为缩放模式 FSDestinationZoomFitRect 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 矩形的左坐标。 |
| [in] | bottom | 矩形的底坐标。 |
| [in] | right | 矩形的右坐标。 |
| [in] | top | 矩形的顶坐标。 |
| + (FSDestination *) createFitVert: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
| left: | (float) | left | |
为缩放模式 FSDestinationZoomFitVert 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 左边缘的水平坐标。 |
| + (FSDestination *) createFromPDFArray: | (FSPDFDoc*) | document | |
| pdf_array: | (FSPDFArray*) | pdf_array | |
从现有的目标数组创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | pdf_array | 目标PDF数组。此PDF数组可以从类型为 FSPDFNameTreeDests 的 FSPDFNameTree 中检索。 |
| + (FSDestination *) createXYZ: | (FSPDFDoc*) | document | |
| page_index: | (int) | page_index | |
| left: | (float) | left | |
| top: | (float) | top | |
| zoom_factor: | (float) | zoom_factor | |
为缩放模式 FSDestinationZoomXYZ 创建目标对象。
| [in] | document | 有效的PDF文档对象。 |
| [in] | page_index | PDF文档中目标页面的索引。 |
| [in] | left | 作为页面左上角位置的水平坐标值。 |
| [in] | top | 作为页面左上角位置的垂直坐标值。 |
| [in] | zoom_factor | 缩放因子值。 |
| - (float) getBottom |
| - (FSPDFArray *) getDestArray |
获取目标PDF数组。
| - (float) getLeft |
获取左位置值。
这仅在缩放模式为 FSDestinationZoomXYZ 、 FSDestinationZoomFitVert 、 FSDestinationZoomFitRect 或 FSDestinationZoomFitBVert 时有用。 特别是对于 FSDestinationZoomXYZ 、 FSDestinationZoomFitVert 和 FSDestinationZoomFitBVert ,左值可能是一个空对象, 这意味着只需使用应用程序的当前左值作为目标的左值。 在这种情况下,此函数将返回0.0f。为了检查左值是否为0或 空对象,建议用户调用函数 FSDestination::isLeftNull 。
对于其他缩放模式,此函数将返回0.0f。
| - (int) getPageIndex: | (FSPDFDoc*) | document |
获取目标页面的索引。
| [in] | document | 有效的PDF文档对象。 |
| - (float) getRight |
| - (float) getTop |
获取顶部位置值。
此方法仅在缩放模式为 FSDestinationZoomXYZ 、 FSDestinationZoomFitHorz 、 FSDestinationZoomFitBHorz 或 FSDestinationZoomFitRect 时有用。 特别地,对于 FSDestinationZoomXYZ 、 FSDestinationZoomFitHorz 和 FSDestinationZoomFitBHorz ,顶部位置值可能是空对象,这意味着只使用 应用程序的当前顶部位置值作为目标的顶部位置值。在这种情况下, 此函数将返回0.0f。为了检查左位置值是否为0或空对象, 建议用户调用函数 FSDestination::isTopNull 。
对于其他缩放模式,此函数将返回0.0f。
| - (float) getZoomFactor |
获取缩放因子。
此方法仅在缩放模式为 FSDestinationZoomXYZ 时有用。 对于 FSDestinationZoomXYZ ,如果缩放因子为0, 这意味着只使用应用程序的当前缩放因子作为目标缩放因子。
对于其他缩放模式,此函数将返回0.0f。
| - (FSDestinationZoomMode) getZoomMode |
获取缩放模式。
| - (id) initWithDest_array: | (FSPDFArray*) | dest_array |
构造函数,使用指定的PDF数组对象。
| [in] | dest_array | 表示目标数据的PDF数组对象。 |
| - (id) initWithOther: | (FSDestination*) | other |
构造函数,使用另一个目标对象。
| [in] | other | 另一个目标对象。 |
| - (BOOL) isEmpty |
检查当前对象是否为空。
当当前对象为空时,意味着当前对象无用。
| - (BOOL) isLeftNull |
检查左位置值是否为空对象。
此方法仅在缩放模式为 FSDestinationZoomXYZ 、 FSDestinationZoomFitVert 或 FSDestinationZoomFitBVert 时有用。 此函数可用于检查左位置值是否为空对象。 对于其他缩放模式,此函数将返回NO。
| - (BOOL) isTopNull |
检查顶部位置值是否为空对象。
此方法仅在缩放模式为 FSDestinationZoomXYZ 、 FSDestinationZoomFitHorz 或 FSDestinationZoomFitBHorz 时有用。 此函数可用于检查顶部位置值是否为空对象。 对于其他缩放模式,此函数将返回NO。