linkDest#
表示大纲条目或链接的 dest
属性的类。描述了这些条目指向的目的地。
备注
在 MuPDF v1.9.0 版本之前,此类存在于 MuPDF 内部,并在 v1.10.0 版本中被删除。为了向后兼容,PyMuPDF 仍然维护它,尽管它的一些属性不再由 MuPDF 中实际可用的数据支持。
属性 |
简短描述 |
---|---|
目标位置 |
|
文件规范(路径,文件名) |
|
描述性标志 |
|
是否为 MAP? |
|
是否为 URI? |
|
目的地类型 |
|
左上坐标 |
|
如果是命名的目的地,则为名称 |
|
新窗口的名称 |
|
页码 |
|
右下坐标 |
|
URI |
类 API
- class linkDest#
- dest#
如果
linkDest.kind
是LINK_GOTOR
并且linkDest.page
为 -1,则为目标目的地名称。- Type:
str
- fileSpec#
如果
linkDest.kind
是LINK_GOTOR
或LINK_LAUNCH
,则包含此链接指向的文件名和路径。- Type:
str
- flags#
一个描述目的地各个方面有效性和含义的位字段。尽可能地,链接目的地被构建为例如
linkDest.lt
和linkDest.rb
可以被视为定义一个边界框。但标志指示哪些值实际上是指定的,请参见 链接目标标志。- Type:
int
- isMap#
该标志指定是否在解析 URI 时跟踪鼠标位置。默认值:False。
- Type:
bool
- isUri#
指定该目的地是否为互联网资源(与例如本地文件规范的 URI 格式相对)。
- Type:
bool
- named#
此目的地指向某个命名的操作(例如 JavaScript,参见 Adobe PDF 参考)。提供的标准操作有 NextPage、PrevPage、FirstPage 和 LastPage。
- Type:
str
- newWindow#
如果为真,目标应在新窗口中打开。
- Type:
bool
- page#
此目的地指向的页码(在本文件或目标文件中)。只有当
linkDest.kind
为LINK_GOTOR
或LINK_GOTO
时才设置。如果linkDest.kind
为LINK_GOTOR
,则可能为 -1。在这种情况下,linkDest.dest
包含目标文件中目的地的 名称 。- Type:
int
- uri#
此目的地指向的 URI 名称。
- Type:
str
Class representing the dest
property of an outline entry or a link. Describes the destination to which such entries point.
备注
Up to MuPDF v1.9.0 this class existed inside MuPDF and was dropped in version 1.10.0. For backward compatibility, PyMuPDF is still maintaining it, although some of its attributes are no longer backed by data actually available via MuPDF.
Attribute |
Short Description |
---|---|
destination |
|
file specification (path, filename) |
|
descriptive flags |
|
is this a MAP? |
|
is this a URI? |
|
kind of destination |
|
top left coordinates |
|
name if named destination |
|
name of new window |
|
page number |
|
bottom right coordinates |
|
URI |
Class API