Hi,

you can create two minimal example documents, one with and one without the
hyperlink and then unzip the "docx" files (they are actually compressed
zip-files) and compare the files.

There is a tool in Apache POI sources called
"org.apache.poi.ooxml.dev.OOXMLPrettyPrint" which can help to make the two
files easier to compare.

Regards... Dominik.

On Wed, May 8, 2024 at 11:25 AM 丶叶落 <984149...@qq.com.invalid> wrote:

> Hi Apache POI Community,
>
> I'm currently working with Apache POI 5.0.0 to manipulate Word documents
> and I'm facing a challenge with creating internal hyperlinks that point to
> bookmarks within the same document.
>
> I've tried using XWPFHyperlinkRun and other related classes/methods, but
> it seems that these are interpreted as external links rather than internal.
> I've searched through the documentation and various forums, but I couldn't
> find a definitive solution that supports internal hyperlinks.
>
> Is there any way to create internal hyperlinks using Apache POI, or is
> there a patch or workaround available that I might not be aware of? Any
> guidance or examples would be greatly appreciated.
>
> Thank you!
>
> Best regards, [kaiwei]
>
>
>
> 丶叶落
> 984149...@qq.com
>
>
>
> &nbsp;

Reply via email to