テキストフレーム内にハイパーリンクが含まれている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を使用しています...