Hi,
Thanks for your inquiry.
Since both of the code and the data is not complete(datatable) in the function you offered, I tried to change your code but didn't reproduce your issue. The borders will not cross the text in the generated Pdf file on my side.
If you were using the old version, I firstly suggest you try to use the latest version of
Spire.XLS Pack(Hotfix) Version:9.9.13 which has more improvements than old versions.
If the issue still exists, I'm afraid it is difficult for us to locate the reason of your issue if we don't reproduce it on our side. So to help us investigate your issue accurately, please offer us a sample project which could reproduce your issue directly.
You could upload it here or send us(
support@e-iceblue.com) via email.
Best wishes,
Amber
E-iceblue support team