プログラム(C#またはJava)を使用してpptを画像に変換しようとします。Stackoverflow でこのソリューションを検索できますが、問題は次のとおりです。
ppt には、「次のページに移動」や「特定のスライドに移動」などのハイパーリンクがあります。
ppt を画像に変換するときに、ハイパーリンクが画像のどこにあるかを知るにはどうすればよいですか?
画像のハイパーリンクの位置がわかれば言語はなんでもOKです。
プログラム(C#またはJava)を使用してpptを画像に変換しようとします。Stackoverflow でこのソリューションを検索できますが、問題は次のとおりです。
ppt には、「次のページに移動」や「特定のスライドに移動」などのハイパーリンクがあります。
ppt を画像に変換するときに、ハイパーリンクが画像のどこにあるかを知るにはどうすればよいですか?
画像のハイパーリンクの位置がわかれば言語はなんでもOKです。
Each slide has a hyperlinks collection that contains all of the hyperlinks on the slide. Look at each hyperlink's .Type property.
If .Type = msoHyperlinkShape, you can get the hyperlink's coordinates by walking the .Parent chain up to the parent shape; use the shape's coordinates.
If .Type = msoHyperlinkRange, the hyperlink has been applied to text rather than to a shape, so you walk up the .Parent chain to the textrange that represents the hyperlinked text. The text range will have BoundLeft, BoundTop, BoundHeight, BoundWidth properties that give you the coordinates of the hyperlink.
From there, it's ratios ...
LinkLeft / SlideWidth = x / ImageWidthInPixels
Solve for x to get the distance in pixels from the left of the image to the left of the hyperlink position.