It would help a lot if you attach an example of a problematic document (its HTML source and resulting PDF).

If HTML layout width does not fit horizontal PDF space, most probably the problem can be solved by increasing of htmlWidth parameter value. If some text crosses right table border – it looks like a bug in our code (however since the last 3-4 years we did not face such issue).