linkDest#

表示大纲条目或链接的 dest 属性的类。描述了这些条目指向的目的地。

备注

在 MuPDF v1.9.0 版本之前,此类存在于 MuPDF 内部,并在 v1.10.0 版本中被删除。为了向后兼容,PyMuPDF 仍然维护它,尽管它的一些属性不再由 MuPDF 中实际可用的数据支持。

属性

简短描述

linkDest.dest

目标位置

linkDest.fileSpec

文件规范(路径,文件名)

linkDest.flags

描述性标志

linkDest.isMap

是否为 MAP?

linkDest.isUri

是否为 URI?

linkDest.kind

目的地类型

linkDest.lt

左上坐标

linkDest.named

如果是命名的目的地,则为名称

linkDest.newWindow

新窗口的名称

linkDest.page

页码

linkDest.rb

右下坐标

linkDest.uri

URI

类 API

class linkDest#
dest#

如果 linkDest.kindLINK_GOTOR 并且 linkDest.page-1,则为目标目的地名称。

Type:

str

fileSpec#

如果 linkDest.kindLINK_GOTORLINK_LAUNCH,则包含此链接指向的文件名和路径。

Type:

str

flags#

一个描述目的地各个方面有效性和含义的位字段。尽可能地,链接目的地被构建为例如 linkDest.ltlinkDest.rb 可以被视为定义一个边界框。但标志指示哪些值实际上是指定的,请参见 链接目标标志

Type:

int

isMap#

该标志指定是否在解析 URI 时跟踪鼠标位置。默认值:False。

Type:

bool

isUri#

指定该目的地是否为互联网资源(与例如本地文件规范的 URI 格式相对)。

Type:

bool

kind#

指示该目的地的类型,例如本文件中的位置、URI、文件启动、动作或另一个文件中的位置。查看 链接目标类型 以查看名称和数值。

Type:

int

lt#

目标的左上 Point

Type:

Point

named#

此目的地指向某个命名的操作(例如 JavaScript,参见 Adobe PDF 参考)。提供的标准操作有 NextPagePrevPageFirstPageLastPage

Type:

str

newWindow#

如果为真,目标应在新窗口中打开。

Type:

bool

page#

此目的地指向的页码(在本文件或目标文件中)。只有当 linkDest.kindLINK_GOTORLINK_GOTO 时才设置。如果 linkDest.kindLINK_GOTOR,则可能为 -1。在这种情况下,linkDest.dest 包含目标文件中目的地的 名称

Type:

int

rb#

此目的地的右下 Point

Type:

Point

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

linkDest.dest

destination

linkDest.fileSpec

file specification (path, filename)

linkDest.flags

descriptive flags

linkDest.isMap

is this a MAP?

linkDest.isUri

is this a URI?

linkDest.kind

kind of destination

linkDest.lt

top left coordinates

linkDest.named

name if named destination

linkDest.newWindow

name of new window

linkDest.page

page number

linkDest.rb

bottom right coordinates

linkDest.uri

URI

Class API


本软件按原样提供,不作任何明示或暗示担保。本软件根据许可分发,除非根据该许可条款明确授权,否则不得复制、修改或分发。请参阅 artifex.com 上的许可信息,或联系 Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States 了解更多信息。