The Kindle software does try to remove the borders, but it seems that this doesn't always work.
There are plenty of softwares which can do that. For example:
https://www.mobileread.com/forums/showthread.php?t=83053
You might want to look at the PDF subforum here.