If I have understood the article above correctly, I am liable to pay tax on the dividend in UK not Sweden?
But I will also need to pay up to 5% of the tax due or above what is due in the UK to the Swedish tax office?
Not sure this is correct.
The Article provides for the primary liability to arise within the UK due to your UK residency.
However, Sweden retains the right to levy up to 5% of its own tax.
EG
100 gross div paid.
Sweden levies 5% ie 5.
You receive 95 cash.
In UK liability at 42.5% or 32.5% on 100 less a credit for 5.
Apologies if this is what you meant.