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

dtbook-to-odt creates absolute links to path on server when images=linked #121

Open
egli opened this issue Feb 20, 2025 · 0 comments
Open

Comments

@egli
Copy link
Member

egli commented Feb 20, 2025

When the images=LINKED option is enabled the odt contains links to the images instead of the embed image. That is fine. The problem however is that the xlink:href points to a temporary path on the server

<draw:image xlink:href="file:/var/opt/daisy-pipeline2/jobs/8adbfdf8-dc55-4b9b-928f-b91a38ceee1a/context/der_staat/cover.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>

If I modify these links to a relative path and place the images in the same directory as the odt file, the file opens correctly and the images are showing.

<draw:image xlink:href="../cover.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
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