Support relative file URIs in hyperlinks when using CLI #532
For example when converting the following html to a pdf, it should be possible to make the hyperlink refer to the relative URI and not the absolute URI:
What I get: "file://absolute-path/external-file.pdf"
I have tried to change the --base-url argument, but it does not remove the absolute path if I set it to ""(empty).
So I looked it up in the code, and it is fairly easy to change, but I just wanted to make sure that there is interest in including this feature. If there are indeed interest I can make a pull request.
Relative file URIs are also what Prince outputs by default.
The text was updated successfully, but these errors were encountered:
Unfortunately, what you want is currently impossible using the CLI:
Even if these 3 choices may look strange when looked at carefully, I think that they are actually really good when they're used without thinking (and that's what most CLI users do). I don't want to change this behavior.
So you currently have to use
A solution would be to transform