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

    }

}

これをどのように行うことができるかについてのアイデアはありますか?

ちなみに私はAdobeInDesignCS5を使用しています...

4

1 に答える 1

1

次のコードを使用して答えを見つけました。

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

于 2010-10-13T11:29:06.697 に答える