2

我有一个 InDesign 文档,其中包含在文本框架内的超链接。

我需要一种方法来确定超链接中包含的文本的几何边界。不幸的是,我似乎无法在 ExtendScript 中找到这样做的方法。

// Export the hyperlinks in the document
for (k = 0; k < myDocument.hyperlinks.length; k++) {

    // Get the hyperlink
    var myHyperlink = myDocument.hyperlinks[k];

    // Check that the source is a text item
    if (myHyperlink.source instanceof HyperlinkTextSource) {

        // Here, I need to get the geometric bounds of the text contained in the link

    }

}

关于如何做到这一点的任何想法?

顺便说一句,我正在使用 Adob​​e InDesign CS5...

4

1 回答 1

1

使用以下代码找到答案:

http://indisnip.wordpress.com/2010/08/11/round-selected-text-with-polygon/

于 2010-10-13T11:29:06.697 回答