Is it possible to have a hyperlink to a file within the docx package?
What I'm trying:
document.xml:
<w:hyperlink r:id="rId4" w:history="1">
<w:r>
<w:rPr>
<w:rStyle w:val="Hyperlink" />
</w:rPr>
<w:t>link</w:t>
</w:r>
</w:hyperlink>
document.xml.rels:
<Relationship Id="rId4"
Type="
http://schemas.openxmlformats.org/of...hips/hyperlink"
Target="media/image.jpeg" />
image.jpeg is copied into the media folder.
This does not work. I get an error when trying to open the word document. It works for external targets.
Do someone know if this should be possible, and if so, how?