Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve base hyperlink as document property #630

Open
sda030 opened this issue Dec 16, 2024 · 0 comments
Open

Retrieve base hyperlink as document property #630

sda030 opened this issue Dec 16, 2024 · 0 comments

Comments

@sda030
Copy link

sda030 commented Dec 16, 2024

I recently learned that Word allows storing the base URL used for relative hyperlinks in the document. I am unable to retrieve this document property using officer::doc_properties()

https://support.microsoft.com/en-us/topic/how-to-create-absolute-hyperlinks-and-relative-hyperlinks-in-word-documents-d6339b5a-98ba-a483-bac5-95bd33ff5a80

Which also means I am unable to set it programmatically since I do not know the name of the tag is. It is stored in the docProps/app.xml under the tag HyperlinkBase. I tried a naive officer::set_doc_properties(HyperlinkBase = "github.com") but that did not work (unsurprisingly).

Example:
test.docx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant